Sorting through Data with Multiple Criteria (Index, Match, CountIF)?

STATluver

New Member
Joined
Jul 15, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am trying to itemize expenses by division of operations for my farm. I have a list of every expense made throughout the year. I need it summarized but flexible enough to account for differently named items that may be purchased in the future.
Per my image uploaded:
I am looking to create separate summaries per the divisions in column F (chicken, Goat, LGD, etc) for the total annual expense for items in column E. So, I am looking for a formula for M3 that will return items listed in column E only if column F contains "chicken." But, the formula must allow for a new item to automatically be included that differs from a previous entry.
First, I have used the formula =INDEX($G$3:$G$203,MATCH(0,COUNTIF($M$2:M2,$G$3:$G$203),0)) in cell M3. When copied down column M, it fills in each unique entry in column E exactly as I would like except, I need to exclude any entry in column E that does not have "Chicken" entered on the same row in column F. What do I need to change/add?

I have a working knowledge of Excel but I am not an expert by any means. Please be clear and concise and if possible, provide the complete formula for visual reference.
Thank you.
 

Attachments

  • Excel help.jpg
    Excel help.jpg
    241.8 KB · Views: 8

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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