#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 251
Default VLOOKUP

I'm trying to come up with a formula: In Workbook 1, my cursor is in L6, and
I want to look up the number in B6 of Workbook 1 somewhere in Col. B of
Workbook 2, and then take the figure in M6 of Workbook 1 and divide it by the
number that's in column D of Workbook 2 corresponding with the number in Col.
B of Workbook 2 that it looked up. I hope that explains it. In a nutshell:
=lookup B6 in Col. B of Workbook 2, divide M6 in Workbook 1 by the number in
Col. D that corresponds with the number in Col. B that it looked up from Col.
B of workbook 1. Whew! Don't know if that's any better of an explanation!
Connie
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default VLOOKUP

Try this:

=M6 / VLOOKUP(B6,Sheet2!B:D,3,0)

Hope this helps.

Pete

On May 16, 1:47*pm, Connie Martin
wrote:
I'm trying to come up with a formula: *In Workbook 1, my cursor is in L6, and
I want to look up the number in B6 of Workbook 1 somewhere in Col. B of
Workbook 2, and then take the figure in M6 of Workbook 1 and divide it by the
number that's in column D of Workbook 2 corresponding with the number in Col.
B of Workbook 2 that it looked up. *I hope that explains it. *In a nutshell:
=lookup B6 in Col. B of Workbook 2, divide M6 in Workbook 1 by the number in
Col. D that corresponds with the number in Col. B that it looked up from Col.
B of workbook 1. *Whew! *Don't know if that's any better of an explanation! *
Connie


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 251
Default VLOOKUP

Pete, thank you. I'm getting #N/A, however. I put these two worksheets in
the same workbook, so the only change I had to make was change Sheet2 in your
formula to Sheet1. Connie

"Pete_UK" wrote:

Try this:

=M6 / VLOOKUP(B6,Sheet2!B:D,3,0)

Hope this helps.

Pete

On May 16, 1:47 pm, Connie Martin
wrote:
I'm trying to come up with a formula: In Workbook 1, my cursor is in L6, and
I want to look up the number in B6 of Workbook 1 somewhere in Col. B of
Workbook 2, and then take the figure in M6 of Workbook 1 and divide it by the
number that's in column D of Workbook 2 corresponding with the number in Col.
B of Workbook 2 that it looked up. I hope that explains it. In a nutshell:
=lookup B6 in Col. B of Workbook 2, divide M6 in Workbook 1 by the number in
Col. D that corresponds with the number in Col. B that it looked up from Col.
B of workbook 1. Whew! Don't know if that's any better of an explanation!
Connie



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default VLOOKUP

If you are getting #N/A this implies that there was no match found.
You could avoid the error by means of ISNA or ISERROR, but to check
that the formula is working can you put a value in B6 which you know
exists in column B of the other sheet?

Pete

On May 16, 5:07*pm, Connie Martin
wrote:
Pete, thank you. *I'm getting #N/A, however. *I put these two worksheets in
the same workbook, so the only change I had to make was change Sheet2 in your
formula to Sheet1. *Connie



"Pete_UK" wrote:
Try this:


=M6 / VLOOKUP(B6,Sheet2!B:D,3,0)


Hope this helps.


Pete


On May 16, 1:47 pm, Connie Martin
wrote:
I'm trying to come up with a formula: *In Workbook 1, my cursor is in L6, and
I want to look up the number in B6 of Workbook 1 somewhere in Col. B of
Workbook 2, and then take the figure in M6 of Workbook 1 and divide it by the
number that's in column D of Workbook 2 corresponding with the number in Col.
B of Workbook 2 that it looked up. *I hope that explains it. *In a nutshell:
=lookup B6 in Col. B of Workbook 2, divide M6 in Workbook 1 by the number in
Col. D that corresponds with the number in Col. B that it looked up from Col.
B of workbook 1. *Whew! *Don't know if that's any better of an explanation! *
Connie- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 251
Default VLOOKUP

Peter, this works. I discovered that whoever prepared the other spreadsheet
put an apostrophe in front of all the numbers because some of them start with
zero. The apostophe, of course, threw things off. I removed it and it now
works. Thank you very much! Connie

"Pete_UK" wrote:

If you are getting #N/A this implies that there was no match found.
You could avoid the error by means of ISNA or ISERROR, but to check
that the formula is working can you put a value in B6 which you know
exists in column B of the other sheet?

Pete

On May 16, 5:07 pm, Connie Martin
wrote:
Pete, thank you. I'm getting #N/A, however. I put these two worksheets in
the same workbook, so the only change I had to make was change Sheet2 in your
formula to Sheet1. Connie



"Pete_UK" wrote:
Try this:


=M6 / VLOOKUP(B6,Sheet2!B:D,3,0)


Hope this helps.


Pete


On May 16, 1:47 pm, Connie Martin
wrote:
I'm trying to come up with a formula: In Workbook 1, my cursor is in L6, and
I want to look up the number in B6 of Workbook 1 somewhere in Col. B of
Workbook 2, and then take the figure in M6 of Workbook 1 and divide it by the
number that's in column D of Workbook 2 corresponding with the number in Col.
B of Workbook 2 that it looked up. I hope that explains it. In a nutshell:
=lookup B6 in Col. B of Workbook 2, divide M6 in Workbook 1 by the number in
Col. D that corresponds with the number in Col. B that it looked up from Col.
B of workbook 1. Whew! Don't know if that's any better of an explanation!
Connie- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default VLOOKUP

You're welcome, Connie - thanks for feeding back.

Pete

On May 16, 8:01*pm, Connie Martin
wrote:
Peter, this works. *I discovered that whoever prepared the other spreadsheet
put an apostrophe in front of all the numbers because some of them start with
zero. *The apostophe, of course, threw things off. *I removed it and it now
works. *Thank you very much! *Connie

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 in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 08:13 PM.

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"