Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Vlookup if 0 then POA

How do I set the result field to POA if Zero is returned when I use Vlookup?
I am working on a pricebook. When there is no price I would like to insert
POA (or even just a blank) I need to retain the vlookup formula.
In cell B1 enter =VLOOKUP(A1,Sheet1!A:B,2,FALSE)
In cell C1 I enter =IF(B:B=0,"POA",B:B)
How can I combine these 2 formulas so the final result is in B1 and there is
no need for C1.

Thank you
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Vlookup if 0 then POA

Thank you so much. I had been trying different combinations for about 45
minutes. Your response was within seconds of my post. Very much
appreciated.


"galimi" wrote:

Obwan,

You should be able to use an IF statement to test your VLOOKUP

=If(VLOOKUP(A1,Sheet1!A:B,2,FALSE)=0,"POA",VLOOKUP (A1,Sheet1!A:B,2,FALSE))


--
http://HelpExcel.com




"Obwan" wrote:

How do I set the result field to POA if Zero is returned when I use Vlookup?
I am working on a pricebook. When there is no price I would like to insert
POA (or even just a blank) I need to retain the vlookup formula.
In cell B1 enter =VLOOKUP(A1,Sheet1!A:B,2,FALSE)
In cell C1 I enter =IF(B:B=0,"POA",B:B)
How can I combine these 2 formulas so the final result is in B1 and there is
no need for C1.

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Vlookup if 0 then POA

Hi

Depending upon how many such formulae you have, it would be quicker to
use
=IF(COUNTIF(Sheet1!A:A,A1),VLOOKUP(A1,Sheet1!A:B,2 ,FALSE),"POA")
as this would not require a double lookup.

--
Regards

Roger Govier


"Obwan" wrote in message
...
Thank you so much. I had been trying different combinations for
about 45
minutes. Your response was within seconds of my post. Very much
appreciated.


"galimi" wrote:

Obwan,

You should be able to use an IF statement to test your VLOOKUP

=If(VLOOKUP(A1,Sheet1!A:B,2,FALSE)=0,"POA",VLOOKUP (A1,Sheet1!A:B,2,FALSE))


--
http://HelpExcel.com




"Obwan" wrote:

How do I set the result field to POA if Zero is returned when I use
Vlookup?
I am working on a pricebook. When there is no price I would like
to insert
POA (or even just a blank) I need to retain the vlookup formula.
In cell B1 enter =VLOOKUP(A1,Sheet1!A:B,2,FALSE)
In cell C1 I enter =IF(B:B=0,"POA",B:B)
How can I combine these 2 formulas so the final result is in B1 and
there is
no need for C1.

Thank you



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Vlookup if 0 then POA

Thanks Roger
No doubt I did it incorrectly but when I used this I still have zero and not
POA. Sorry I can't attach my spreadsheet so you can double check.


"Roger Govier" wrote:

Hi

Depending upon how many such formulae you have, it would be quicker to
use
=IF(COUNTIF(Sheet1!A:A,A1),VLOOKUP(A1,Sheet1!A:B,2 ,FALSE),"POA")
as this would not require a double lookup.

--
Regards

Roger Govier


"Obwan" wrote in message
...
Thank you so much. I had been trying different combinations for
about 45
minutes. Your response was within seconds of my post. Very much
appreciated.


"galimi" wrote:

Obwan,

You should be able to use an IF statement to test your VLOOKUP

=If(VLOOKUP(A1,Sheet1!A:B,2,FALSE)=0,"POA",VLOOKUP (A1,Sheet1!A:B,2,FALSE))


--
http://HelpExcel.com




"Obwan" wrote:

How do I set the result field to POA if Zero is returned when I use
Vlookup?
I am working on a pricebook. When there is no price I would like
to insert
POA (or even just a blank) I need to retain the vlookup formula.
In cell B1 enter =VLOOKUP(A1,Sheet1!A:B,2,FALSE)
In cell C1 I enter =IF(B:B=0,"POA",B:B)
How can I combine these 2 formulas so the final result is in B1 and
there is
no need for C1.

Thank you






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Vlookup if 0 then POA

No, my mistake.
I totally misread the question and thought it was if the Item didn't
exist in A:A you needed POA, not that the lookup value of the item was
zero.
Sorry for the confusion.

--
Regards

Roger Govier


"Obwan" wrote in message
...
Thanks Roger
No doubt I did it incorrectly but when I used this I still have zero
and not
POA. Sorry I can't attach my spreadsheet so you can double check.


"Roger Govier" wrote:

Hi

Depending upon how many such formulae you have, it would be quicker
to
use
=IF(COUNTIF(Sheet1!A:A,A1),VLOOKUP(A1,Sheet1!A:B,2 ,FALSE),"POA")
as this would not require a double lookup.

--
Regards

Roger Govier


"Obwan" wrote in message
...
Thank you so much. I had been trying different combinations for
about 45
minutes. Your response was within seconds of my post. Very much
appreciated.


"galimi" wrote:

Obwan,

You should be able to use an IF statement to test your VLOOKUP

=If(VLOOKUP(A1,Sheet1!A:B,2,FALSE)=0,"POA",VLOOKUP (A1,Sheet1!A:B,2,FALSE))


--
http://HelpExcel.com




"Obwan" wrote:

How do I set the result field to POA if Zero is returned when I
use
Vlookup?
I am working on a pricebook. When there is no price I would
like
to insert
POA (or even just a blank) I need to retain the vlookup formula.
In cell B1 enter =VLOOKUP(A1,Sheet1!A:B,2,FALSE)
In cell C1 I enter =IF(B:B=0,"POA",B:B)
How can I combine these 2 formulas so the final result is in B1
and
there is
no need for C1.

Thank you






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLookup a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


All times are GMT +1. The time now is 01:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"