Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lab lab is offline
external usenet poster
 
Posts: 8
Default I need help with a IF(ISNA with vlookup

I am using a IF ISNA with two different vlookups.

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),GETPIVOTDATA ("Cost",Cost,"Analyte",Sheet1!F42963,"Laboratory", Sheet1!I42963),VLOOKUP(A42963,LL_Cost,2,0))

This formula works great, except that the cells that don't find anything in
either table return a #REF and I want this value to be zero. Is there a way
to do this.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 192
Default I need help with a IF(ISNA with vlookup

I think the only way to do that is to do something like the following (or a
variation of the following):

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),IF(GETPIVOTD ATA("Cost",Cost,"Analyte",Sheet1!F42963,"Laborator y",Sheet1!I42963)="",0,GETPIVOTDATA("Cost",Cost,"A nalyte",Sheet1!F42963,"Laboratory",Sheet1!I42963)) ,IF(VLOOKUP(A42963,LL_Cost,2,0)="",0,VLOOKUP(A4296 3,LL_Cost,2,0)))

Hopefully it fits into a single cell. I think it should (or it did on
mine).

You might have to do a Find/Replace after if this is a report.

--
-SA


"LAB" wrote:

I am using a IF ISNA with two different vlookups.

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),GETPIVOTDATA ("Cost",Cost,"Analyte",Sheet1!F42963,"Laboratory", Sheet1!I42963),VLOOKUP(A42963,LL_Cost,2,0))

This formula works great, except that the cells that don't find anything in
either table return a #REF and I want this value to be zero. Is there a way
to do this.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 192
Default I need help with a IF(ISNA with vlookup

Oops! Ignore that last line. :)
--
-SA


"StumpedAgain" wrote:

I think the only way to do that is to do something like the following (or a
variation of the following):

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),IF(GETPIVOTD ATA("Cost",Cost,"Analyte",Sheet1!F42963,"Laborator y",Sheet1!I42963)="",0,GETPIVOTDATA("Cost",Cost,"A nalyte",Sheet1!F42963,"Laboratory",Sheet1!I42963)) ,IF(VLOOKUP(A42963,LL_Cost,2,0)="",0,VLOOKUP(A4296 3,LL_Cost,2,0)))

Hopefully it fits into a single cell. I think it should (or it did on
mine).

You might have to do a Find/Replace after if this is a report.

--
-SA


"LAB" wrote:

I am using a IF ISNA with two different vlookups.

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),GETPIVOTDATA ("Cost",Cost,"Analyte",Sheet1!F42963,"Laboratory", Sheet1!I42963),VLOOKUP(A42963,LL_Cost,2,0))

This formula works great, except that the cells that don't find anything in
either table return a #REF and I want this value to be zero. Is there a way
to do this.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lab lab is offline
external usenet poster
 
Posts: 8
Default I need help with a IF(ISNA with vlookup

Didn't work actually. Still returning ref# error

"StumpedAgain" wrote:

Oops! Ignore that last line. :)
--
-SA


"StumpedAgain" wrote:

I think the only way to do that is to do something like the following (or a
variation of the following):

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),IF(GETPIVOTD ATA("Cost",Cost,"Analyte",Sheet1!F42963,"Laborator y",Sheet1!I42963)="",0,GETPIVOTDATA("Cost",Cost,"A nalyte",Sheet1!F42963,"Laboratory",Sheet1!I42963)) ,IF(VLOOKUP(A42963,LL_Cost,2,0)="",0,VLOOKUP(A4296 3,LL_Cost,2,0)))

Hopefully it fits into a single cell. I think it should (or it did on
mine).

You might have to do a Find/Replace after if this is a report.

--
-SA


"LAB" wrote:

I am using a IF ISNA with two different vlookups.

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),GETPIVOTDATA ("Cost",Cost,"Analyte",Sheet1!F42963,"Laboratory", Sheet1!I42963),VLOOKUP(A42963,LL_Cost,2,0))

This formula works great, except that the cells that don't find anything in
either table return a #REF and I want this value to be zero. Is there a way
to do this.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 192
Default I need help with a IF(ISNA with vlookup

How about this:

=IF(ISERROR(IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),G ETPIVOTDATA("Cost",Cost,"Analyte",Sheet1!F42963,"L aboratory",Sheet1!I42963),VLOOKUP(A42963,LL_Cost,2 ,0))),0)

??

--
-SA


"LAB" wrote:

Didn't work actually. Still returning ref# error

"StumpedAgain" wrote:

Oops! Ignore that last line. :)
--
-SA


"StumpedAgain" wrote:

I think the only way to do that is to do something like the following (or a
variation of the following):

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),IF(GETPIVOTD ATA("Cost",Cost,"Analyte",Sheet1!F42963,"Laborator y",Sheet1!I42963)="",0,GETPIVOTDATA("Cost",Cost,"A nalyte",Sheet1!F42963,"Laboratory",Sheet1!I42963)) ,IF(VLOOKUP(A42963,LL_Cost,2,0)="",0,VLOOKUP(A4296 3,LL_Cost,2,0)))

Hopefully it fits into a single cell. I think it should (or it did on
mine).

You might have to do a Find/Replace after if this is a report.

--
-SA


"LAB" wrote:

I am using a IF ISNA with two different vlookups.

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),GETPIVOTDATA ("Cost",Cost,"Analyte",Sheet1!F42963,"Laboratory", Sheet1!I42963),VLOOKUP(A42963,LL_Cost,2,0))

This formula works great, except that the cells that don't find anything in
either table return a #REF and I want this value to be zero. Is there a way
to do this.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default I need help with a IF(ISNA with vlookup

Try it this way:

=IF(ISNA(VLOOKUP(A42963,LL_Cost,
2,0)),IF(ISERROR(GETPIVOTDATA("Cost",Cost,"Analyte ",Sh*eet1!
F42963,"Laboratory",Sheet1!I42963)),
0,GETPIVOTDATA("Cost",Cost,"Analyte",Sh*eet1!
F42963,"Laboratory",Sheet1!I42963)),VLOOKUP(A42963 ,LL_Cost,2,0))

Hope this helps.

Pete

On Jul 10, 11:35*pm, LAB wrote:
I am using a IF ISNA with two different vlookups.

=IF(ISNA(VLOOKUP(A42963,LL_Cost,2,0)),GETPIVOTDATA ("Cost",Cost,"Analyte",Sh*eet1!F42963,"Laboratory" ,Sheet1!I42963),VLOOKUP(A42963,LL_Cost,2,0))

This formula works great, except that the cells that don't find anything in
either table return a #REF and I want this value to be zero. Is there a way
to do this.


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, IF, and ISNA MMBOLI Excel Discussion (Misc queries) 2 August 17th 06 04:53 PM
Sort with ISNA and vlookup Tom Excel Worksheet Functions 0 January 26th 06 08:01 PM
isna vlookup Tim Excel Discussion (Misc queries) 2 April 3rd 05 11:23 AM
ISNA and VLOOKUP Chris Kellock Excel Worksheet Functions 3 March 12th 05 07:05 AM
if isna and vlookup together tina Excel Worksheet Functions 2 January 20th 05 01:06 PM


All times are GMT +1. The time now is 08:55 AM.

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

About Us

"It's about Microsoft Excel"