Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
I have this formula which refers to the Master Tab.
=VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
Steve wrote:
I have this formula which refers to the Master Tab. =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve =IF(ISNA(VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALS E)), VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE), VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE)) |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
As long as the lookup value is on one or the other sheets...
=VLOOKUP($B4,IF(COUNTIF(MasterTab!$H$21:$H$923,$B4 ),MasterTab!$H$21:$O$923,MinorTab!$H$21:$O$923),8, 0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... I have this formula which refers to the Master Tab. =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
Thank you very much. This worked great.
Steve "Glenn" wrote: Steve wrote: I have this formula which refers to the Master Tab. =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve =IF(ISNA(VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALS E)), VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE), VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE)) . |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
The lookup value would be on either the master sheet or the minor sheet, but
not both. There also may be a situation where it would not be on either. Trying the formula, results in a #REF! For the particular lookup value I'm using, that value in on the master sheet. "T. Valko" wrote: As long as the lookup value is on one or the other sheets... =VLOOKUP($B4,IF(COUNTIF(MasterTab!$H$21:$H$923,$B4 ),MasterTab!$H$21:$O$923,MinorTab!$H$21:$O$923),8, 0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... I have this formula which refers to the Master Tab. =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve . |
#6
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
Trying the formula, results in a #REF!
Hmmm... Works just fine for me. However: There also may be a situation where it would not be on either. In that case, the formula would return #N/A. So, what result do you want when the lookup value isn't on either sheet? -- Biff Microsoft Excel MVP "Steve" wrote in message ... The lookup value would be on either the master sheet or the minor sheet, but not both. There also may be a situation where it would not be on either. Trying the formula, results in a #REF! For the particular lookup value I'm using, that value in on the master sheet. "T. Valko" wrote: As long as the lookup value is on one or the other sheets... =VLOOKUP($B4,IF(COUNTIF(MasterTab!$H$21:$H$923,$B4 ),MasterTab!$H$21:$O$923,MinorTab!$H$21:$O$923),8, 0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... I have this formula which refers to the Master Tab. =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve . |
#7
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
Ok, It works now. You inadvertently had H - H on the first Master tab
reference instead of H - O, and I also eneterd it with both H's. Changing the 2nd H to an O makes it work great. Thanks, Steve "T. Valko" wrote: As long as the lookup value is on one or the other sheets... =VLOOKUP($B4,IF(COUNTIF(MasterTab!$H$21:$H$923,$B4 ),MasterTab!$H$21:$O$923,MinorTab!$H$21:$O$923),8, 0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... I have this formula which refers to the Master Tab. =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve . |
#8
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
#N/A will be ok.
Thanks, "T. Valko" wrote: Trying the formula, results in a #REF! Hmmm... Works just fine for me. However: There also may be a situation where it would not be on either. In that case, the formula would return #N/A. So, what result do you want when the lookup value isn't on either sheet? -- Biff Microsoft Excel MVP "Steve" wrote in message ... The lookup value would be on either the master sheet or the minor sheet, but not both. There also may be a situation where it would not be on either. Trying the formula, results in a #REF! For the particular lookup value I'm using, that value in on the master sheet. "T. Valko" wrote: As long as the lookup value is on one or the other sheets... =VLOOKUP($B4,IF(COUNTIF(MasterTab!$H$21:$H$923,$B4 ),MasterTab!$H$21:$O$923,MinorTab!$H$21:$O$923),8, 0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... I have this formula which refers to the Master Tab. =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve . . |
#9
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
#N/A result because data is on another worksheet
OK, thanks for the feedback!
-- Biff Microsoft Excel MVP "Steve" wrote in message ... #N/A will be ok. Thanks, "T. Valko" wrote: Trying the formula, results in a #REF! Hmmm... Works just fine for me. However: There also may be a situation where it would not be on either. In that case, the formula would return #N/A. So, what result do you want when the lookup value isn't on either sheet? -- Biff Microsoft Excel MVP "Steve" wrote in message ... The lookup value would be on either the master sheet or the minor sheet, but not both. There also may be a situation where it would not be on either. Trying the formula, results in a #REF! For the particular lookup value I'm using, that value in on the master sheet. "T. Valko" wrote: As long as the lookup value is on one or the other sheets... =VLOOKUP($B4,IF(COUNTIF(MasterTab!$H$21:$H$923,$B4 ),MasterTab!$H$21:$O$923,MinorTab!$H$21:$O$923),8, 0) -- Biff Microsoft Excel MVP "Steve" wrote in message ... I have this formula which refers to the Master Tab. =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) It usually works great, however, when the data is not found ( because it's on another worksheet ( Minor Tab!), I get a #N/A. How can I re-write the formula that if the #N/A is produced, it does the Vlookup on the Minor tab! instead of the master tab! Something like: If =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) produces a #N/A, VLOOKUP($B4,MinorTab!$H$21:$O$923,8,FALSE, if not, use this original formula =VLOOKUP($B4,MasterTab!$H$21:$O$923,8,FALSE) Thanks, Steve . . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I copy a check box result from Worksheet A to Worksheet B? | Excel Worksheet Functions | |||
return worksheet name that a result came from | Excel Worksheet Functions | |||
I cannot see the result of a SUM in the worksheet, why? | Excel Discussion (Misc queries) | |||
How can I put result of If worksheet function into a different cel | Excel Worksheet Functions | |||
Updating 1 worksheet with result from another worksheet | Excel Discussion (Misc queries) |