count the character from criteria

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
902
Hi, I have a column that combines month and day i.e JulyMonday, I need to Sumif this column but to only grab the month name based on another column that has the criteria of the month.

=IF(BQ5=0,"",SUMIF($A$60:$A$501,D5,$BQ$60:$BQ$486)/SUMIF($A$60:$A$501,D5,$BP$60:$BP$486))

A is MonthDay combo
D5 is the Month July

Some how it would need to look for the month name and sumif from the MonthDay combo based on D5. I don't want to make another column just for the month...

Make sense?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi, I have a column that combines month and day i.e JulyMonday, I need to Sumif this column but to only grab the month name based on another column that has the criteria of the month.

=IF(BQ5=0,"",SUMIF($A$60:$A$501,D5,$BQ$60:$BQ$486)/SUMIF($A$60:$A$501,D5,$BP$60:$BP$486))

A is MonthDay combo
D5 is the Month July

Some how it would need to look for the month name and sumif from the MonthDay combo based on D5. I don't want to make another column just for the month...

Make sense?
Replace D5 with D5&"*" in your formulas.
 
Upvote 0

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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