deriving a daily/weekly/monthly tally based on values in a range - with or without VBA

faste

New Member
Joined
Nov 1, 2013
Messages
13
is there a way to turn this:
Code:
(col a)        (col b)           (col c)           (col d)
fruit          frequency eaten    time to eat    red color?
Apple          daily              med             yes
cantaloupe     weekly             high            no
cherry         monthly            low             yes
into this?

Code:
monthly count
red/low     red/med     red/high     non-red/low     non-red/med     non-red/high
1           30           0            0              4               0
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I can count 1 value, but not sure how to combine:

Code:
=IF(C1:C3="med",(ROWS(C1:C3)))

I think I could figure out the daily/weekly/monthly count part by multiplying by 30 if = "daily", etc. Putting it all together, I'm having a tough time.
 
Upvote 0
I think I solved the crux of it, I'll figure out the daily/weekly/monthly part later:



Code:
=COUNTIFS(C:C, "med",D:D, "yes")

would give me the count of values where "med" and "yes" in columns c and d both exist. Pretty simple actually.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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