Sumif withVlookup or something different.

Mooresmi

Board Regular
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

If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Mark W.

MrExcel MVP
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

Mooresmi

Board Regular
Please replace the word "counted" for "summed". Thanks, Gordon

[No message]

Mooresmi

Board Regular
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.

maxflia10

Well-known Member
Gee, at least I thought I would get some credit for finding it!

Replies
7
Views
397
Replies
11
Views
870
Replies
17
Views
866
Replies
3
Views
324
Replies
4
Views
398

1,181,096
Messages
5,928,049
Members
436,586
Latest member
latintxn

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.

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

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