wakefield101
New Member
- Joined
- Jan 4, 2014
- Messages
- 31
Hi I am trying to figure out what appeared to be a simple formula however I thought wrong.
Does anyone know how to have a SUMIF apply if a cell contains a certain text?
Here is the formula that I have now, which is not working... =SUMIF(AJ1:BC1,"=*Reserved*",OR("=*Actuals*"),AJ2:BC2)
What I want the formula to say is, if the range of cells have the word "Reserved" in it, then sum all corresponding rows, if not than sum the range with the word "Actuals" in the cell
Here is an example of the data I am using.
If thee is a another way then the sumif formula, please let me know.
Does anyone know how to have a SUMIF apply if a cell contains a certain text?
Here is the formula that I have now, which is not working... =SUMIF(AJ1:BC1,"=*Reserved*",OR("=*Actuals*"),AJ2:BC2)
What I want the formula to say is, if the range of cells have the word "Reserved" in it, then sum all corresponding rows, if not than sum the range with the word "Actuals" in the cell
Here is an example of the data I am using.
Excel Workbook | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
AJ | AK | AL | AM | AN | AO | AP | AQ | AR | AS | |||
1 | FEB-2016 Reserved | FEB-2016 Actuals | MAR-2016 Reserved | MAR-2016 Actuals | APR-2016 Reserved | APR-2016 Actuals | MAY-2016 Reserved | MAY-2016 Actuals | JUN-2016 Reserved | JUL-2016 Reserved | ||
2 | 0 | 0 | 0 | 0 | 0 | 0.24 | 0 | 0 | 0 | 0 | ||
3 | 0 | 0 | 0 | 0 | 0.24 | 0 | 1 | 0 | 1 | 1 | ||
4 | 0 | 0 | 0.09 | 0 | 0.18 | 0 | 0.18 | 0 | 0.18 | 0.18 | ||
5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.84 | 0.88 | ||
6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.46 | 0.84 | ||
Data |
If thee is a another way then the sumif formula, please let me know.