Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pank
 
Posts: n/a
Default Multiple Vlookups

I have a sheet called lookup that has the following data columns:-

Col A (Print Size) has values like 7*5, 8*6, 8*8, etc.

Col B (No of Prints) has values starting at 100 and going up in steps of 25
up to and including 300.

Col C (Price Per Print) has values of how much it would cost to get each
print multiplied by the number of prints (i.e. x pence * 100 Prints).

Col D (Individual Price Print), has a value for a single print multiplied by
a whole number (i.e. x pence * 20).

A sample screen shoot would look like:-

Print Size No of Prints Price Per Print Individual Price Print
7*5 100 39.00 1.95
7*5 125 49.00 1.95
7*5 150 59.00 1.95
7*5 175 69.00 1.95

8*6 100 50.00 2.50
8*6 125 63.00 2.50
8*6 150 75.00 2.50
8*6 175 88.00 2.50

8*8 100 75.00 3.50
8*8 125 85.00 3.50
8*8 150 95.00 3.50
8*8 175 105.00 3.50
etc.
etc.
etc.

I have a sheet called Master where I will input the Print Size in a cell
(col C, e.g. 8*6) and number of prints in an adjoining cell (col D, 175). I
need a look up to populate col E with a value of 88 (from the example above).

Any assistance offered would be most welcome.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Multiple Vlookup’s

One way:

=index(othersheet!$c$1:$c$100,
match(1,(a2=othersheet!$a$1:$a$100)*(b2=othersheet !$b$1:$b$100),0))

(all in one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can't use the whole column.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100),0))

Pank wrote:

I have a sheet called lookup that has the following data columns:-

Col A (Print Size) has values like 7*5, 8*6, 8*8, etc.

Col B (No of Prints) has values starting at 100 and going up in steps of 25
up to and including 300.

Col C (Price Per Print) has values of how much it would cost to get each
print multiplied by the number of prints (i.e. x pence * 100 Prints).

Col D (Individual Price Print), has a value for a single print multiplied by
a whole number (i.e. x pence * 20).

A sample screen shoot would look like:-

Print Size No of Prints Price Per Print Individual Price Print
7*5 100 39.00 1.95
7*5 125 49.00 1.95
7*5 150 59.00 1.95
7*5 175 69.00 1.95

8*6 100 50.00 2.50
8*6 125 63.00 2.50
8*6 150 75.00 2.50
8*6 175 88.00 2.50

8*8 100 75.00 3.50
8*8 125 85.00 3.50
8*8 150 95.00 3.50
8*8 175 105.00 3.50
etc.
etc.
etc.

I have a sheet called Master where I will input the Print Size in a cell
(col C, e.g. 8*6) and number of prints in an adjoining cell (col D, 175). I
need a look up to populate col E with a value of 88 (from the example above).

Any assistance offered would be most welcome.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default Multiple Vlookups


=INDEX($C$2:$C$15,MATCH(1,($A$2:$A$15="8*6")*($B$2 :$B$15=175),0))

Enter as an array formula with Ctrl-Shift-Enter

HTH

"Pank" wrote:

I have a sheet called lookup that has the following data columns:-

Col A (Print Size) has values like 7*5, 8*6, 8*8, etc.

Col B (No of Prints) has values starting at 100 and going up in steps of 25
up to and including 300.

Col C (Price Per Print) has values of how much it would cost to get each
print multiplied by the number of prints (i.e. x pence * 100 Prints).

Col D (Individual Price Print), has a value for a single print multiplied by
a whole number (i.e. x pence * 20).

A sample screen shoot would look like:-

Print Size No of Prints Price Per Print Individual Price Print
7*5 100 39.00 1.95
7*5 125 49.00 1.95
7*5 150 59.00 1.95
7*5 175 69.00 1.95

8*6 100 50.00 2.50
8*6 125 63.00 2.50
8*6 150 75.00 2.50
8*6 175 88.00 2.50

8*8 100 75.00 3.50
8*8 125 85.00 3.50
8*8 150 95.00 3.50
8*8 175 105.00 3.50
etc.
etc.
etc.

I have a sheet called Master where I will input the Print Size in a cell
(col C, e.g. 8*6) and number of prints in an adjoining cell (col D, 175). I
need a look up to populate col E with a value of 88 (from the example above).

Any assistance offered would be most welcome.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pank
 
Posts: n/a
Default Multiple Vlookups

Dave and Toppers,

Firstly many thanks for both your suggestions which worked a treat.

I opted for Dave solution as it saves me changing the formula each time.
Dave's solution offers flexibility.

Once again, this forum does the business.

Regards


"Toppers" wrote:


=INDEX($C$2:$C$15,MATCH(1,($A$2:$A$15="8*6")*($B$2 :$B$15=175),0))

Enter as an array formula with Ctrl-Shift-Enter

HTH

"Pank" wrote:

I have a sheet called lookup that has the following data columns:-

Col A (Print Size) has values like 7*5, 8*6, 8*8, etc.

Col B (No of Prints) has values starting at 100 and going up in steps of 25
up to and including 300.

Col C (Price Per Print) has values of how much it would cost to get each
print multiplied by the number of prints (i.e. x pence * 100 Prints).

Col D (Individual Price Print), has a value for a single print multiplied by
a whole number (i.e. x pence * 20).

A sample screen shoot would look like:-

Print Size No of Prints Price Per Print Individual Price Print
7*5 100 39.00 1.95
7*5 125 49.00 1.95
7*5 150 59.00 1.95
7*5 175 69.00 1.95

8*6 100 50.00 2.50
8*6 125 63.00 2.50
8*6 150 75.00 2.50
8*6 175 88.00 2.50

8*8 100 75.00 3.50
8*8 125 85.00 3.50
8*8 150 95.00 3.50
8*8 175 105.00 3.50
etc.
etc.
etc.

I have a sheet called Master where I will input the Print Size in a cell
(col C, e.g. 8*6) and number of prints in an adjoining cell (col D, 175). I
need a look up to populate col E with a value of 88 (from the example above).

Any assistance offered would be most welcome.

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
Move multiple rows of data that are not sequential Mel Excel Discussion (Misc queries) 1 January 20th 06 06:33 AM
view multiple files in multiple windows on multiple screens. tcom Excel Discussion (Misc queries) 7 September 15th 05 09:35 PM
Adding multiple worksheets Craig Excel Worksheet Functions 1 July 6th 05 07:21 PM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
XML / parent with multiple children and with multiple children Richard Excel Discussion (Misc queries) 0 January 5th 05 11:49 AM


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