Hi There,
I'm doing sumif and its not working correctly and need some help! The sumif is only picking first value. I want the cell where it says Date to be dynamic
Hi There,
I'm doing sumif and its not working correctly and need some help! The sumif is only picking first value. I want the cell where it says Date to be dynamic
You would normally use SUMIF like this:
=SUMIF(criteria_range,criteria,sum_range)
but for your criteria_range you only have one cell (i.e. A1), thus you will only get one value from your sum_range (i.e. from A2). You would normally have dates in one column and then have the corresponding values in an adjacent column.
Please explain more clearly what you want to achieve.
Hope this helps.
Pete
The RANGE and the SUM Range need to be the same size. You are only getting one result, because the RANGE is only one cell in size.
Also the syntax is not correct - what are you trying to achieve?
You should hit F5, because chances are I've edited this post at least 5 times.
Example of Array Formulas
Click the * below on any post that helped you.
@Speshul
I figured out that part coz, if i add the similar range it works, but its not a clean way to write!
Attach another sample file which shows more dates - do you have different monthly values in different columns?
Pete
Thanks for the assistance!
All I want to do is result in D2 using sum if and the reason to do that is I've data going back 12 months and need the caculcation based on cell E1. Data is in similar format as posted just extra columns.
I hope it clear up a wee bit!
may be this is what you wanted
Observation: You are comparing A1 and E1. A1 looks like a date but is only text that looks like a date while E1 is a real date. Change A1 to be a real date. Then the following will work.
Formula:
=SUM(IF(A1=E1,A2:A14))
<---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.Ron W
Please see attached with more datasets. I need sum total based on the month in E1..
@AlanY I think you reply gives me the answer but honestly I don't understand the logic!
Based on your attachment in Post #9, you can use this formula in E2:
=SUM(INDEX(A2:C14,,MATCH(E1,A1:C1,0)))
which is non-volatile, but you have to put the date 01/07/2014 in cell A1 instead of the text value "Jul-2014" (copy the format from B1 to A1 using the Format Painter).
Hope this helps.
Pete
Using your supplied data, this works
Formula:
=SUM(OFFSET(A1,1,MATCH(E1,A1:C1,0)-1,100,1))
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks