janema
Board Regular
- Joined
- Nov 28, 2022
- Messages
- 143
- Office Version
- 365
- 2021
- 2019
- 2011
- 2010
- Platform
- Windows
- Mobile
I am having trouble getting this IF formula to work properly while pulling XLOOKUPS.
I want it to return BLANK if the cell is blank and I want it to lookup a different sheet, if there is not data on the first sheet that it is looking up. For some reason, the blank park keeps erroring me out. This is how I am writing the formula and keep getting errors:
=IF(AM="","",IF(XLOOKUP(AM68,'LS 4.2024'!L:L,'LS 4.2024'!P:P)="",XLOOKUP(' Promotions'!AM68,'All US 4.2024'!L:L,'All US 4.2024'!P:P),XLOOKUP(AM68,'LS 4.2024'!L:L,'LS 4.2024'!P:P))
I want it to return BLANK if the cell is blank and I want it to lookup a different sheet, if there is not data on the first sheet that it is looking up. For some reason, the blank park keeps erroring me out. This is how I am writing the formula and keep getting errors:
=IF(AM="","",IF(XLOOKUP(AM68,'LS 4.2024'!L:L,'LS 4.2024'!P:P)="",XLOOKUP(' Promotions'!AM68,'All US 4.2024'!L:L,'All US 4.2024'!P:P),XLOOKUP(AM68,'LS 4.2024'!L:L,'LS 4.2024'!P:P))