XLOOKUP Not Working

MrDB4Excel

Active Member
Joined
Jan 29, 2004
Messages
341
Office Version
  1. 2013
Platform
  1. Windows
Even though I use Excel 2013 I have the XLookup Addin and it always works perfectly.
Obviously, I don’t have this formula created correctly. My intent here is for the cells in column H to pick up the month indicated by the cells in columns A & B and that the lookup value is always only one of the 12 cells in column I that represents the month number.
As you can see by the XL2bb Mini Sheet it only works for the formula in cell H2. After this cell, H3 and after, the formula result goes haywire.
I have searched for an answer and tried several approaches but have come up with nothing that helps.
I would much appreciate any help offered.

Cell Formulas
RangeFormula
A2:A20A2=IF((ISERROR(MONTH('2022'!$B2)))," ",(MONTH('2022'!$B2)))
B2:B20B2=IF(ISBLANK([BogusEasyAccounting2022.xlsx]Expenses!$B3)," ",([BogusEasyAccounting2022.xlsx]Expenses!$B3))
C2:C20C2=IF(ISBLANK([BogusEasyAccounting2022.xlsx]Expenses!$C3)," ",([BogusEasyAccounting2022.xlsx]Expenses!$C3))
F2F2=[@Income]
G2:G20G2=IF((ISERROR(VALUE(A2)))," ",(VALUE(A2)))
H2:H20H2=IF((ISERROR(XLOOKUP(I2,$G$2:$G$228,$J$2:$J$13,0)))," ",(XLOOKUP(I2,$G$2:$G$228,$J$2:$J$13,0)))
F3F3=SUM(F2+[@Income]-[@Debits])
D3:D20D3=IF(ISBLANK([BogusEasyAccounting2022.xlsx]Expenses!$E4)," ",([BogusEasyAccounting2022.xlsx]Expenses!$E4))
E4:E20E4=IF(ISBLANK([BogusEasyAccounting2022.xlsx]Expenses!$D5)," ",([BogusEasyAccounting2022.xlsx]Expenses!$D5))
F4:F20F4=F3+N([@Income])-N([@Debits])


And the support file:
BogusEasyAccounting2022.xlsx
ABCDEF
2MonthDateDescriptionDebitsIncomeBalance
31Jan/06/2022January Starting Balance$1,000.00
41Jan/06/2022Pension Deposit$1,000.00$2,000.00
51Jan/06/2022Medicare Part B$100.00$1,900.00
61Jan/06/2022Medicare Part D$100.00$1,800.00
71Jan/07/2022Rent$600.00$1,200.00
81Jan/07/2022Electricity$120.00$1,080.00
91Jan/08/2022Verizon$100.00$980.00
101Jan/08/2022Car Payment$100.00$880.00
112Feb/01/2022$880.00
123Mar/01/2022$880.00
134Apr/01/2022$880.00
145May/01/2022$880.00
156Jun/01/2022$880.00
167Jul/01/2022$880.00
178Aug/01/2022$880.00
189Sep/01/2022$880.00
1910Oct/01/2022$880.00
2011Nov/01/2022$880.00
2112Dec/01/2022$880.00
221$880.00
Expenses
Cell Formulas
RangeFormula
A3:A22A3=MONTH(B3)
F4:F22F4=SUM(F3+[@Income]-[@Debits])
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I don't really understand your formula at all. Why are you looking up the values from column I in column G? The reason you get September in H3 is that you are looking up I3, which is 2, in column G, which matches G10. The corresponding cell in column J is J10, which has September in it. Don't you just want a simple VLOOKUP of the values in column G against the values in I and return the relevant month name from J? For that all you need is:

Excel Formula:
=IFERROR(VLOOKUP(G2,$I$2:$J$13,2,FALSE),"")
 
Upvote 0
Solution
Your formula =IFERROR(VLOOKUP(G2,$I$2:$J$13,2,FALSE),"") works.
You bring to light some very important things to consider; that is, why and what is it I really need. So I will visit this in my bogus sheet to see why I want such results in my non-bogus sheet which obviously contains data I am not comfortable sharing in the mini sheets.
Ever learning. At the moment I am not sure now why I wanted to do this, but at the time I was looking at this it seemed important, so now I must take a serious look at it all.
Thank you so much for your help and for the good formula and for helping me to see beyond my nose.
Stay safe!
 
Upvote 0

Forum statistics

Threads
1,223,250
Messages
6,171,036
Members
452,374
Latest member
keccles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top