Forum Discussion

vinedancer's avatar
vinedancer
Copper Contributor
Sep 30, 2022

Excel - using If and Vlookup together

I have a workbook where the first sheet has dates in the heading and the data for those columns is on another sheet. I want to combine an If statement to pick up the date, then lookup the items (say Food purchases) and return either column 2, 3 or 4 depending on the date heading.

 

No sure of the exact syntax and tried all sorts to get the IF and VLOOKUP to work together.

 

=IF($J$5='P&L25.9 '!$C$4,"vlookup,'2023'!A6,'P&L25.9 '!$a$6:$Z$60,4",0)

This statement isn't working 😞

 

Thanks 🙂

2 Replies

Resources