Formula with Lookup formula to return a text value

EvenS8245

New Member
Joined
Mar 25, 2022
Messages
25
Office Version
  1. 2013
Platform
  1. Windows
Hello all.

I am attempting to key a formula to pull back a most used text value for an induvial in Excel 2013.

All my searches have directed me towards an =INDEX(range, MODE(MATCH(range, range, 0 ))) formula. There are multiple criteria that I have to work with, such as an ID # and Date, which, I believe, will need an IF(AND formula.

So I need the formula to search for each person and return what was the most used issue for a particular date.

1648214872885.png


I have attempted using the formula below and I keep getting #VALUE!.

=INDEX(range1,MODE(IF(AND(range2=id,range3=rundate),MATCH(range1,range1,0))))



Actual formula in example:

=INDEX($D$2:$D$26,MODE(IF(AND($A$2:$A$26=G4,$C$2:$C$26=$H$3),MATCH($D$2:$D$26,$D$2:$D$26,0))))



I am far from an expert and the actual file that i'm working on has 23k rows of data, so I was hoping that someone could help point me in the right direction. Hopefully i'm not too far off.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try the following formula . . .

H4, confirmed with CONTROL+SHIFT+ENTER, copied across and down:

Excel Formula:
=INDEX($D$2:$D$26,MODE(IF($A$2:$A$26=$G4,IF($C$2:$C$26=H$3,MATCH($D$2:$D$26,$D$2:$D$26,0)))))

Hope this helps!
 
Upvote 0
Solution
Try the following formula . . .

H4, confirmed with CONTROL+SHIFT+ENTER, copied across and down:

Excel Formula:
=INDEX($D$2:$D$26,MODE(IF($A$2:$A$26=$G4,IF($C$2:$C$26=H$3,MATCH($D$2:$D$26,$D$2:$D$26,0)))))

Hope this helps!
Thank you! That worked.
 
Upvote 0
Try the following formula . . .

H4, confirmed with CONTROL+SHIFT+ENTER, copied across and down:

Excel Formula:
=INDEX($D$2:$D$26,MODE(IF($A$2:$A$26=$G4,IF($C$2:$C$26=H$3,MATCH($D$2:$D$26,$D$2:$D$26,0)))))

Hope this helps!
If i needed to add an IFNA( to that formula. Would that go before the =INDEX? I would like the field to stay blank if NA.

So basically, it would read:

=IFNA(INDEX($D$2:$D$26,MODE(IF($A$2:$A$26=$G4,IF($C$2:$C$26=H$3,MATCH($D$2:$D$26,$D$2:$D$26,0))))),"") CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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