MODEIFS and Text Mode

B1313

New Member
Joined
Sep 20, 2015
Messages
32
Hello,

I am trying to accomplish a simple goal, depending on some conditions calculate the mode of some text entries. The problems are multiple. For one, I can't seem to get a MODEIFS function or Mode combined with a bunch of if/and/or statements to work correctly whilst searching for the mode of text. Here is my working formula for mode via ALL orders, I want to be able to add if options to filter the mode (eg if date = TODAY() the calculate the mode of ALL orders that were processed TODAY ONLY). Ideas? Would it be simpler to just make a MODEIFS VBA function? If so, can someone provide it?

Here is my formula (array formula) to at least calculate the text mode, but my if statements version does not work on anything that filters dates (eg IF(Orders!$C$6:$C$993 = TODAY(), MODE_STUFF, ...)):

Code:
=INDEX(INDIRECT(ADDRESS(6, 7, 1, 1, "Orders") & ":" & ADDRESS((MATCH(TRUE, INDEX(ISBLANK(Orders!$G$6:$G$993), 0, 0), 0) + 4), 7, 1, 1)), MODE(MATCH(INDIRECT(ADDRESS(6, 7, 1, 1, "Orders") & ":" & ADDRESS((MATCH(TRUE, INDEX(ISBLANK(Orders!$G$6:$G$993), 0, 0), 0) + 4), 7, 1, 1)), INDIRECT(ADDRESS(6, 7, 1, 1, "Orders") & ":" & ADDRESS((MATCH(TRUE, INDEX(ISBLANK(Orders!$G$6:$G$993), 0, 0), 0) + 4), 7, 1, 1)), 0)))

Here is a sample of the Orders spreadsheet:

MASfMiD.png


Thanks for any help! :)
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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