Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default #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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default #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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default #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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default #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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default #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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default #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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default #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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default #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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default #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
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
How do I copy a check box result from Worksheet A to Worksheet B? Javadan289 Excel Worksheet Functions 5 December 26th 06 07:25 PM
return worksheet name that a result came from jer130 Excel Worksheet Functions 2 September 11th 06 01:34 PM
I cannot see the result of a SUM in the worksheet, why? Nrippe Excel Discussion (Misc queries) 5 August 9th 06 12:08 AM
How can I put result of If worksheet function into a different cel Janice Excel Worksheet Functions 1 August 30th 05 08:01 PM
Updating 1 worksheet with result from another worksheet mwrfsu Excel Discussion (Misc queries) 0 August 19th 05 10:01 PM


All times are GMT +1. The time now is 08:20 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"