@SUMIF and Using Dates as Criteria

scottlloyd33

New Member
Joined
Oct 7, 2002
Messages
32
Columnar Data looks like:

1/25/2001 $10.00 $20.00
8/5/2001 $10.00 $20.00
5/10/2000 $20,00 $40.00
12/25/1999 $40,00 $80.00

My problem -- I don't want to hard-wire my date criteria into the formula -- I want it to go look at cell. Say A5 that has the date 12/31/2001 -- I want to formula to look like the following:

@Sumif(a1..a3,<=Cell A5,b1..b3)

What is necessary format for the criteria?

My first try at Mr. Excel -- so please be kind -- lol
 

Some videos you may like

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
On 2002-10-08 14:35, scottlloyd33 wrote:
Columnar Data looks like:

1/25/2001 $10.00 $20.00
8/5/2001 $10.00 $20.00
5/10/2000 $20,00 $40.00
12/25/1999 $40,00 $80.00

My problem -- I don't want to hard-wire my date criteria into the formula -- I want it to go look at cell. Say A5 that has the date 12/31/2001 -- I want to formula to look like the following:

@Sumif(a1..a3,<=Cell A5,b1..b3)

What is necessary format for the criteria?

My first try at Mr. Excel -- so please be kind -- lol

The formula is:

=SUMIF(A1:A3,"<="&A5,B1:B3)
 

scottlloyd33

New Member
Joined
Oct 7, 2002
Messages
32
Thanks -- worked like a champ. I had tried it that way -- but got errors. Actually my spreadsheet was in 123 and I thought (hoped) the formulas would be the same -- but Lotus returned errors.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,912
Messages
5,598,833
Members
414,260
Latest member
joishe

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