Help with INDEX and MATCH using two INDEX columns

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
719
Office Version
  1. 2010
Platform
  1. Windows
Hi:

The formula below is return required value from range N if value in E470 is greater than zero. But if value is less than zero, I want to return value from range O.

How can I adjust formula to return value in range O


IF(E474>0,INDEX(Sheet1!$N$15:$N$42,MATCH('CF WS'!B474,Sheet1!$M$15:$M$42,0)))


Thanks for your help.

Sean
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi,

What about when E474 is Exactly zero?
This modified formula uses Range N for >0, and uses Range O for zero or less:

=INDEX(IF(E474>0,Sheet1!$N$15:$N$42,Sheet1!$O$15:$O$42),MATCH('CF WS'!B474,Sheet1!$M$15:$M$42,0))
 
Upvote 0
Hi:

Excellent, thank you very much.

Sean
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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