Adding Match to an Index Formula

Hatter

New Member
Joined
Apr 12, 2024
Messages
12
Office Version
  1. 365
Platform
  1. Windows
I have the following index formula that finds and reports the number of lines within a Bill of Materials based upon a count.
=IF(ROWS(A$6:A6)<=$D$4,INDEX(BOMs!F$4:F$30890,SMALL(IF(BOMs!$B$4:$B$30890=$A$4,ROW(BOMs!$B$4:$B$30890)-ROW(BOMs!$A$4)+1),ROWS(A$6:A6))),"")
But i wanted to limit the number of results to a particular category, therefore i amended the count from =COUNTIFS(BOMs!$A:$A,$B$4) to =COUNTIFS(BOMs!$B:$B,$A$4,BOMs!$E:$E,$C$4) which in itself works, however the index only reports the count number of lines (in this case the first six lines) and doesn't recognise the category required hence why i want to add a Match into the formula, if that is the correct option.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
As you have 365 how about
Excel Formula:
=FILTER(BOMs!F4:F30890,(BOMs!B4:B30890=A4)*(BOMs!E4:E30890=C4))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,226,463
Messages
6,191,181
Members
453,646
Latest member
BOUCHOUATA

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