count the character from criteria

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
893
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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,963
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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.
 

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
893
Awesome! thanks Joe Mo, now I i can find the cell that I had that formula :)
 

Forum statistics

Threads
1,176,349
Messages
5,902,638
Members
434,985
Latest member
jessika2105

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
Top