Index Match?

erutherford

Active Member
Joined
Dec 19, 2016
Messages
449
On worksheet "input" in C31, I would like to insert the results of a search on worksheet "hstry" by first searching in "Col F" for the words "oil Change" then search the same worksheet col D for the highest number (mileage).

thanks as always
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Maybe something like this in C31 in input sheet?

Code:
=MAX(IF(hstry!F:F="Oil Change",hstry!D:D))

As it is an array formula after putting the formula hit Ctrl+Shift+Enter and not just Enter.
 
Upvote 0
The formula returns a zero. I have four values in "D:D" the highest is 6001, so the formula should return that value.
 
Upvote 0
I found this and it seems to work fine
Code:
{=MAX(IF(Hstry!F2:F11="Valve Adjustment",Hstry!D2:D11))}
.

You have to put "{}" brackets around it, can't remember how that done, should be hard to find.
 
Upvote 0
I found this and it seems to work fine
Code:
{=MAX(IF(Hstry!F2:F11="Valve Adjustment",Hstry!D2:D11))}
.

You have to put "{}" brackets around it, can't remember how that done, should be hard to find.

You must have pressed only Enter after putting the formula instead of Ctrl+shift+Enter, that's the reason you got 0 intstead of 6001.

I mentioned in my post to press Ctrl+shft+Enter instead of just Enter.

Those curly braces are automatically added when you press Ctrl+Shift+Enter after putting the formula in any cell. You cannot just manually put those curly braces.
 
Upvote 0

Forum statistics

Threads
1,215,746
Messages
6,126,641
Members
449,325
Latest member
Hardey6ix

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