Adding extra step to Index Match Formula

Sundance_Kid

Board Regular
Joined
Sep 2, 2017
Messages
155
Office Version
  1. 365
Platform
  1. Windows
Hi, I have index match formula that is returning the correct value, however, I want to add an extra step and if cell 3 says "Plane" I want the value returned to be multiplied by 2 or else if it says "Boat" it is multiplied by 1. In the example I have included it says Plane so should be multiplied by 2.
Any idea how I can add that final piece to the formula?

Thanks

Book1
BCDEFGHIJ
1
2
3Country/ProductABCTransportBoat
4France€5.00€6.00€7.00ProductC
5Germany€3.00€4.00€5.00CountrySpain
6Italy€2.00€1.00€4.00Price€3.00
7UK€5.00€5.00€5.00
8Spain€1.00€2.00€3.00
9
10
11
Sheet1
Cell Formulas
RangeFormula
I6I6=INDEX($C$4:$E$8,MATCH(I5,$B$4:$B$8,0),MATCH(I4,$C$3:$E$3,0))
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
A couple of typos, I mean cell I3 and in the example I gave it says Boat, so should be multiplied by 1 and not 2
 
Upvote 0

Forum statistics

Threads
1,224,885
Messages
6,181,586
Members
453,055
Latest member
cope7895

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