old Excel 2003 help conditional lookup

cookmd

New Member
Joined
Dec 15, 2011
Messages
6
I am beating my head against a wall trying to find a solution. Please have mercy.

A B C D E
Item number, Pricing Level, Cost, Price, Profit
1 A 1.00 2.00 1.00
1 B 1.00 2.50 1.50
1 C 1.00 3.00 2.00
2 A 1.50 3.00 1.50
3 D 1.50 3.00 1.50

I want to set excel up so that someone can type in an Item Number and the different pricing levels are displayed.

Essentially: (given Item number X), If X in column A AND Pricing Level Y = C THEN Price = correct cell in D

So that Item Number 1 & Pricing level B = Price 2.50
while Item Number 1 & Pricing level A = Price 2.00

that way a sales rep can type in an item number and the different price levels will auto-populate.

From there I will need to pull in cost and profit amount as well. Essentially this would be a form in Excel 2003.

Any ideas?
 
Last edited:

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I am beating my head against a wall trying to find a solution. Please have mercy.

A, B, C, D, E,
Item number, Pricing Level, Cost, Price, Profit,
1, A, 1.00, 2.00, 1.00,
1, B, 1.00, 2.50, 1.50,
1, C, 1.00, 3.00, 2.00,
2, A, 1.50, 3.00, 1.50,
3, D, 1.50, 3.00, 1.50,

I'm using commas to separate cell values.

I want to set excel up so that someone can type in an Item Number and the different pricing levels are displayed.

Essentially: (given Item number X), If X in column A AND Pricing Level Y = C THEN Price = correct cell in D

So that Item Number 1 & Pricing level B = Price 2.50
while Item Number 1 & Pricing level A = Price 2.00

that way a sales rep can type in an item number and the different price levels will auto-populate.

From there I will need to pull in cost and profit amount as well. Essentially this would be a form in Excel 2003.

Any ideas?
 
Upvote 0
I am beating my head against a wall trying to find a solution. Please have mercy.

A B C D E
Item number, Pricing Level, Cost, Price, Profit
1 A 1.00 2.00 1.00
1 B 1.00 2.50 1.50
1 C 1.00 3.00 2.00
2 A 1.50 3.00 1.50
3 D 1.50 3.00 1.50

I want to set excel up so that someone can type in an Item Number and the different pricing levels are displayed.

Essentially: (given Item number X), If X in column A AND Pricing Level Y = C THEN Price = correct cell in D

So that Item Number 1 & Pricing level B = Price 2.50
while Item Number 1 & Pricing level A = Price 2.00

that way a sales rep can type in an item number and the different price levels will auto-populate.

From there I will need to pull in cost and profit amount as well. Essentially this would be a form in Excel 2003.

Any ideas?
Does that mean you want a VBA solution or do you want a worksheet formula?
 
Upvote 0
A formula solution would be easiest. I need to retrieve results from two separate worksheets, so If I can get a formula that will work, I should be able to alter it to suit all the sales team's retrieval needs.

when they type in an item number, I need to retrieve price by all price levels, cost, and profit. Thanks for the fast responses!
 
Upvote 0
A formula solution would be easiest. I need to retrieve results from two separate worksheets, so If I can get a formula that will work, I should be able to alter it to suit all the sales team's retrieval needs.

when they type in an item number, I need to retrieve price by all price levels, cost, and profit. Thanks for the fast responses!
Try this...

Data:

Book1
ABCDE
1Item numberPricing LevelCostPriceProfit
21A121
31B12.51.5
41C132
52A1.531.5
63D1.531.5
Sheet1

Filtered data:

Book1
ABCDE
10Item numberPricing LevelCostPriceProfit
111A121
12_B12.51.5
13_C132
14_____
Sheet1

This assumes the data is sorted or grouped together by item number.

Enter this formula in B11:

=IF(ROWS(B$11:B11)>COUNTIF($A$2:$A$6,$A$11),"",INDEX(B$2:B$6,MATCH($A$11,$A$2:$A$6,0)+ROWS(B$11:B11)-1))

Copy down until you get blanks then across to column E.
 
Upvote 0
Hi Biff,

Thanks for the response.

I don't think I'm getting this (sorry). In Excel, I have one workbook with two worksheets, sheet1, and sheet2.

I need the formula to reference two different fields on "sheet2" against two separate columns on "sheet1". Once both fields are matched up, then I need the corresponding data to populate from a third column on "sheet1".

WHERE sheet2,C2 is the item number manually entered by a sales rep.

AND

WHERE sheet2,B5 = A
WHERE sheet2,B6 = B
WHERE sheet2,B7 = C
WHERE sheet2,B8 = D


IF 'Item Number' (sheet2,C2) = 1 (sheet1,A:A) AND 'Pricing Level' (sheet2,B5) = A THEN, Price = (sheet1,D2) ELSE 'blank'

IF 'Item Number' (sheet2,C2) = 1 (sheet1,A:A) AND 'Pricing Level' (sheet2,B6) = B THEN, Price = (sheet1,D3) ELSE 'blank'

IF 'Item Number' (sheet2,C2) = 1 (sheet1,A:A) AND 'Pricing Level' (sheet2,B7) = C THEN, Price = 'blank'

IF 'Item Number' (sheet2,C2) = 1 (sheet1,A:A) AND 'Pricing Level' (sheet2,B8) = D THEN, Price = 'blank'

I only want the reps to see sheet2, type in an item number on sheet2,C2. From there,
sheet2,B5; sheet2,B6; sheet2,B7; sheet2,B8; are auto-populated.

I hope that clears up what I'm needing.
I'm trying to find which formulas to plug in to sheet2, C5-C8, which would then put the appropriate prices to the right of the cells that show price level A B C and D
 
Last edited:
Upvote 0
Hi Biff,

Thanks for the response.

I don't think I'm getting this (sorry). In Excel, I have one workbook with two worksheets, sheet1, and sheet2.

I need the formula to reference two different fields on "sheet2" against two separate columns on "sheet1". Once both fields are matched up, then I need the corresponding data to populate from a third column on "sheet1".

WHERE sheet2,C2 is the item number manually entered by a sales rep.

AND

WHERE sheet2,B5 = A
WHERE sheet2,B6 = B
WHERE sheet2,B7 = C
WHERE sheet2,B8 = D


IF 'Item Number' (sheet2,C2) = 1 (sheet1,A:A) AND 'Pricing Level' (sheet2,B5) = A THEN, Price = (sheet1,D2) ELSE 'blank'

IF 'Item Number' (sheet2,C2) = 1 (sheet1,A:A) AND 'Pricing Level' (sheet2,B6) = B THEN, Price = (sheet1,D3) ELSE 'blank'

IF 'Item Number' (sheet2,C2) = 1 (sheet1,A:A) AND 'Pricing Level' (sheet2,B7) = C THEN, Price = 'blank'

IF 'Item Number' (sheet2,C2) = 1 (sheet1,A:A) AND 'Pricing Level' (sheet2,B8) = D THEN, Price = 'blank'

I only want the reps to see sheet2, type in an item number on sheet2,C2. From there,
sheet2,B5; sheet2,B6; sheet2,B7; sheet2,B8; are auto-populated.

I hope that clears up what I'm needing.
I'm trying to find which formulas to plug in to sheet2, C5-C8, which would then put the appropriate prices to the right of the cells that show price level A B C and D
Sorry, I don't follow this. :confused:
 
Upvote 0
That's Ok. I'm really terrible about explaining things.

I want to cross reference two cells on one worksheet against my data on another worksheet to retrieve the correct price from the second sheet.

In the raw data, Item Numbers are duplicated in the first column, so
the only way to distinguish pricing in the database is by looking up the Item Number in Column A and Pricing Level in column B to get a Price in Column C

Basically,

Item 1, Price Level A is one price.
while
Item 1, Price Level B is a different price.

I have to be able to use both columns (Item Number and Price Level) to find the right price to charge a customer.

To throw another wrench in the works, I need to skip some columns in the formulas.

In my Real Data,

Column A = Item Number
Column C = Price Level
Column G = Price
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,795
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top