Vlookup, replace true text result with "X"

M

Maxine

I have a formula that requires and "X" to replace the true result in a cell.
The source of the data is located in a vlookup. How do I replace a "yes"
result with an "x" results. I also need to return a blank result if the
vlookup is false.
This is the formula I have:
=IF(D21="","",IF(G21="xxxxxxxxxxxx","",VLOOKUP(D21,inventory!A2:D12,4)))

Please Help!!!!!!!!
 
M

Marcelo

=if(iserror(vlookup(c2,a2:b100,2,0))," ",rept("X",15))

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Maxine" escreveu:
 
M

Maxine

I apologize. I do not believe I was very clear in my description of my
problem. The formula I need requires a few variables. The formula needs to
address a blank result if the relative cell is blank. It also needs to place
"xxxxxxx" if the an invalid number is entered in the relative cell. And
lastly, if the vlookup finds an exact match, which would be the text "yes",
then it needs to return a result of "X" instead of the text "yes".

I apologize for the confusion.
 
M

Marcelo

ok, lets try

=IF(A5="","",IF(ISERROR(VLOOKUP(A5,D5:E12,2,0)),REPT("X",12),VLOOKUP(A5,D5:E12,2,0)))

Hope this help
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Maxine" escreveu:
 
M

Marcelo

my apologies, please adjusting the range as you need

=IF(D21="","",IF(ISERROR(VLOOKUP(D21,inventory!A2:D12,4)),REPT("X",12),VLOOKUP(D21,inventory!A2:D12,4)))

Sorry for that


--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Marcelo" escreveu:
 
M

Maxine

Thanks for the help!!!! I appreciate it!

Marcelo said:
my apologies, please adjusting the range as you need

=IF(D21="","",IF(ISERROR(VLOOKUP(D21,inventory!A2:D12,4)),REPT("X",12),VLOOKUP(D21,inventory!A2:D12,4)))

Sorry for that


--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Marcelo" escreveu:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top