If and Match formula problem

gcot

New Member
Joined
Feb 4, 2004
Messages
28
Hi all,

I have a problem that would seem simple enough but I haven't been able to figure it out.

What I want to do is have a formula for each Item code row which represents orders for various items. This formula would check the Max Qty table and apply the max qty if the order qty was over the max otherwise it would keep the original amount. I hope I explained it clearly enough.

Thanks for your help,

Gilles

Item Code Qty
Item A 5
Item B 6
Item C 7
Item D 8


Item Code Max Qty
Item A 5
Item B 5
Item C 5
Item D 5
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

How about this?
Book1
ABCDE
1ItemCodeQty
2ItemA55
3ItemB65
4ItemC75
5ItemD44
6
7
8ItemCodeMaxQty
9ItemA5
10ItemB5
11ItemC5
12ItemD5
Sheet2
 

gcot

New Member
Joined
Feb 4, 2004
Messages
28
Thanks fairwinds. You've come through for me again. It works.

Have a great day!

Gilles
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,835
Messages
5,855,910
Members
431,772
Latest member
dannyboi1

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
Top