hi all
if used the formula VLOOKUP with empty table will give 1900-01-00 how keep empty table empty
=IFERROR(VLOOKUP(B18,IF({1,0},Sheet4!$B$4:$B$502,Sheet4!$I$4:$I$502),2,0),"")
I'd be really thankful if someone has a solution for this.
hi all
if used the formula VLOOKUP with empty table will give 1900-01-00 how keep empty table empty
=IFERROR(VLOOKUP(B18,IF({1,0},Sheet4!$B$4:$B$502,Sheet4!$I$4:$I$502),2,0),"")
I'd be really thankful if someone has a solution for this.
As there is no second column in either of the arrays you have entered into the VLOOKUP formula, this cannot be working.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Assuming the iferror is to avoid other issues, you could try checking if the current formula results in 0 (which in a date field is 1900-01-00?)
Try:
Formula:Please Login or Register to view this content.
I also don't see the lookup array having 2 columns?
Please help by:
Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know
There are 10 kinds of people in this world... those who understand binary, and those who don't.
@AliGW & Arkadi
It's actually a neat little trick, and it does work.
It the IF {1,0} bit creates a 2 column array with B and I
Although I've previousely seen it with CHOOSE instead of IF..
@Rocky
The issue is that 1900-01-00 is really just a 0 with a Date Cell formatting.
And 0 is NOT an error, therefor it will not be trapped by Iferror.
You would have to do
=IF(VLOOKUP(...)=0,"",VLOOKUP(...))
Last edited by Jonmo1; 03-01-2017 at 02:52 PM.
Since the cell containing the formula is formatted as a date (0 shows as 1900-01-00)
That suggests you're expecting the resulting value of the vlookup to be a Date.
Then try
=IFERROR(1/(1/VLOOKUP(B18,IF({1,0},Sheet4!$B$4:$B$502,Sheet4!$I$4:$I$502),2,0)),"")
thanks Arkadi This works perfectly, thank you so so much!
thanks Jonmo1 also it's work thank you so much!
R0CKY, you are welcome, glad we could help
Please remember to mark the thread as solved if you are happy with the solutions provided? Thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks