Sumif withVlookup or something different.

Mooresmi

Board Regular
Joined
Oct 15, 2002
Messages
68
I need to sum a total of column of figures dependent on a entered date. Example is
Col.A (range)= list of dates (everyday for a year)
Col.B = (sum_range) List of values to be counted
Criteria is a date in a static cell.

What I need is to sum the values as long as the date is less than or equal to the criteria date.

My feeble attempt was =sumif(A:A,"<=c1",B:B) but of course this does not work; the sumif function doesn't seem to be able to determine if the cell value of C1 is <=, the result is always zero.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Is there a data type mismatch between your column A:A values and C1? Do you intend to Sum or Count the B:B values? The body of your posting said "count" but your subject line implied "sum".
This message was edited by Mark W. on 2002-10-16 18:14
 
Upvote 0
Credit to Aladin
Thanks Aladin.
This is what I ended up with

=SUMIF('I1'!B:B,"<="&DAY(C$1)&"-"&MONTH(C$1)&"-"&YEAR(C$1),'I1'!I:J) +SUMIF('I1'!B:B,"<="&DAY(C$1)&"-"&MONTH(C$1)&"-"&YEAR(C$1),'I1'!AG:AH) +SUMIF('I1'!B:B,"<="&DAY(C$1)&"-"&MONTH(C$1)&"-"&YEAR(C$1),'I1'!BE:BF)

$ sign for filldown formula and just change with Replace function, the sheet name.
Thanks again.
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,690
Members
449,092
Latest member
snoom82

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