My col B has a value for each hour in C. I am trying to match get the value from B for matching value in A. I have tried out with XLOOKUP, but it gives 1 match and two N/A :s repeatedly (picture). Should i use another function or should it work with XLOOKUP. (Later will come values that are not aligned.)
edit: Here is pictures of formulas in D3 and D4. (I wrote d3 and dragged down)
edit: Here are the formulas D3=XLOOKUP(A3;$C$3:$C$40;$B$3:$B$40) D4=XLOOKUP(A4;$C$3:$C$40;$B$3:$B$40)
Edit: As requested
LookupValue | return_value | LookupArray | XLOOKUP | |
---|---|---|---|---|
1.5.2023 0:00 | 31,51 | 1.5.2023 0:00:00 | 31,51 | |
1.5.2023 1:00 | 31,49 | 1.5.2023 1:00:00 | #N/A | |
1.5.2023 2:00 | 34,02 | 1.5.2023 2:00:00 | #N/A | |
1.5.2023 3:00 | 36,69 | 1.5.2023 3:00:00 | 36,69 | |
1.5.2023 4:00 | 39,89 | 1.5.2023 4:00:00 | #N/A | |
1.5.2023 5:00 | 42,55 | 1.5.2023 5:00:00 | #N/A | |
1.5.2023 6:00 | 44,83 | 1.5.2023 6:00:00 | 44,83 | |
1.5.2023 7:00 | 47,89 | 1.5.2023 7:00:00 | #N/A | |
1.5.2023 8:00 | 56,11 | 1.5.2023 8:00:00 | #N/A | |
1.5.2023 9:00 | 65,55 | 1.5.2023 9:00:00 | 65,55 | |
1.5.2023 10:00 | 50,09 | 1.5.2023 10:00:00 | #N/A | |
1.5.2023 11:00 | 49,43 | 1.5.2023 11:00:00 | #N/A |