Hi everybody, I am working on a If statement that is working but when there is no data I keep getting #N/A. If some one can help me with what to add where to make it stop displaying #N/A and just be a blank if no data I would appreciate it.
Below is my code
=IF(ISNA(HLOOKUP($D$6,'Pivot AM'!$A$11:$L$19,2,FALSE)),HLOOKUP($D$6,'Pivot AM'!$A$85:$L$89,2,FALSE),HLOOKUP($D$6,'Pivot AM'!$A$11:$L$19,2,FALSE))
Thanks for your time and any help.
Last edited by NBVC; 01-17-2012 at 10:53 AM.
Try:
=IF(ISNA(HLOOKUP($D$6,'Pivot AM'!$A$11:$L$19,2,FALSE)),IF(ISNA(HLOOKUP($D$6,'Pivot AM'!$A$85:$L$89,2,FALSE)),"",HLOOKUP($D$6,'Pivot AM'!$A$85:$L$89,2,FALSE)),HLOOKUP($D$6,'Pivot AM'!$A$11:$L$19,2,FALSE))
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
You sir deserve a GOLD STAR
Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks