index match? index match match? what should i use here?

dayday123

New Member
Joined
Mar 12, 2014
Messages
24
Hi All -

I currently have a very long and complicated formula that i am positive can be made more simple but just not sure exactly how to accomplish it. I have a table of products, max price, min price, and average as shown below in one tab of an excel

ColumnAColumnBColumnCColumnD
Row1ProductMaxMinAverage
Row2productA$2.00$1.00$1.50
Row3productB$5.00$1.00$3.00
Row4ProductC$10.00$20.00$15.00

<tbody>
</tbody>

In another tab I have products and prices listed that may fall within the range or without. If it falls within the range for that specific product then i want to use the price shown. If it falls outside of the range then i want to use the average.

ColumnFColumnGColumnH
Row6Product PricePrice New (adjusted based on above) - this is where i need to adjust my formula
Row7productA$1.05$1.05
Row8productA$3.00$1.50
Row9productB$2.75$2.75
Row10productC$5.00$15.00

<tbody>
</tbody>


Can someone help me with this or point me in the right direction of what type of formula i shoud use?

THanks so much!
****** id="cke_pastebin" style="position: absolute; top: -3.8147e-06px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
ColumnAColumnBColumnCColumnD
Row1ProductMaxMinAverage
Row2productA$2.00$1.00$1.50
Row3productB$5.00$1.00$3.00
Row4ProductC$10.00$20.00$15.00

<tbody>
</tbody>
</body>
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
so what do you have as a formula, useful to see what you currently do. Also you seem to be using Chrome, and the editor in that causes some pasting issues you'll see i your post the ****** which is the removal of bad layout code
 
Upvote 0
currently i am just using a ton of nested if functions which is annoying because every time we add a new product i have to go in and edit the formula because each if function refers to a specific product (specific row of information). i want it to just be a vlookup of sorts where i can reference the entire columns so as new products are added it automatically gets included.

Also the nested if functions wont work soon because apparently there is a character limit on formuals?? i just came across this in excel today.

yes i see what you mean about the **** but in the post i still see the tables so not sure what it removed. It looks right to me.
 
Upvote 0
currently i am just using a ton of nested if functions which is annoying because every time we add a new product i have to go in and edit the formula because each if function refers to a specific product (specific row of information). i want it to just be a vlookup of sorts where i can reference the entire columns so as new products are added it automatically gets included.

Also the nested if functions wont work soon because apparently there is a character limit on formulas?? i just came across this in excel today.

Do you have any thoughts on what i should use?

yes i see what you mean about the **** but in the post i still see the tables so not sure what it removed. It looks right to me.
 
Upvote 0
Products worksheet:
ABCD
1ProductMaxMinAverage
2productA$2.00$1.00$1.50
3productB$5.00$1.00$3.00
4ProductC$10.00$20.00$15.00

<tbody>
</tbody>

Prices worksheet:
ABCDE
1ProductPricePrice New 1Price New 2Match
2productA$1.05$1.051.051
3productA$3.00$1.501.51
4productB$2.75$2.752.752
5productC$5.00$15.00153

<tbody>
</tbody>

In Prices!C2 and copied downward:
=IF(OR(B2>INDEX(Products!$B$2:$B$4, MATCH(A2, Products!$A$2:$A$4, 0)),
B2< INDEX(Products!$C$2:$C$4, MATCH(A2, Products!$A$2:$A$4, 0))),
INDEX(Products!$D$2:$D$4, MATCH(A2, Products!$A$2:$A$4, 0)), B2)


If you can afford a helper column, you can put the MATCH formula there. The Match only needs to be done once per row.

In Prices!E2 and copied downward:
=MATCH(A2, Products!$A$2:$A$4, 0)

Then in Prices!D2 and copied downward, I have:
=IF(OR(B2>INDEX(Products!$B$2:$B$4,E2),
B2< INDEX(Products!$C$2:$C$4,E2)),
INDEX(Products!$D$2:$D$4, E2),B2)
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,053
Members
449,206
Latest member
Healthydogs

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