@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
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,008
Messages
5,834,864
Members
430,324
Latest member
bosphoruskid

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