Help with INDEX and MATCH?

samilynn

Board Regular
Joined
Jun 24, 2003
Messages
166
Office Version
  1. 2016
Platform
  1. Windows
Hi, I am using the following formula (combination of INDEX and MATCH) to mark in Column G which Manufacturer has the lowest price.

It works great if the Manufacturers are in columns right next to each other, but it breaks if I have columns in between that I want to ignore.

Is there another way to do this? I would rather not shift Columns C and E out of the table.

Thanks!
Samantha

LOWEST PRICE VENDOR.xlsx
ABCDEFG
1SKUMFG "A"IGNORE THIS COLUMNMFG "B"IGNORE THIS COLUMNMFG "C"WHO IS LOWEST?
2A123$1.00$0.10$1.25$0.10$1.50IGNORE THIS COLUMN
3A555$10.00$0.10$9.00$0.10$9.50IGNORE THIS COLUMN
4B456$0.15$0.10$0.17$0.10$0.10IGNORE THIS COLUMN
5B666$6.21$0.10$6.18$0.10$6.99IGNORE THIS COLUMN
Sheet1
Cell Formulas
RangeFormula
G2:G5G2=INDEX($B$1:$F$1,MATCH(MIN(B2:F2),B2:F2,0))
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
change your equation to:
Excel Formula:
=INDEX($B$1:$F$1,MATCH(MIN(B2,D2,F2),B2:F2,0))
 
Upvote 0
Solution
  1. Is it possible that one of those 'Ignore' column values could be equal to the lowest value in one of the manufacturer columns?
  2. What are the actual headers in the 'Ignore' columns? Is there something common about them that is not common to the manufacturer columns?
  3. Is it possible that 2 or more manufacturers will have the equal lowest price? If so, what do you want returned in the 'Who is lowest?' column?
 
Upvote 0

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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