Excel - easy summary (I hope !)

V

Vince281

Hi All
I need to summarise the total of entries for a particular day in a
table like this :


Date Sale
June 01 50.00
June 01 50.00
June 03 60.00
June 03 20.00
Etc.


How do I get just today's sales ? i.e. I just want to have a cell like
this :


Today's sales are : 80.00

(as today is June 3rd).


Been looking at COUNTIF but just can't work it out. :confused:
Do I need to do a range somehow ? Help much appreciated !
 
B

barrfly

have you tried the function sumif?

the criteria is
range
criteria
sumrange

range - select the column that has the dates of all the sales
criteria - select the one cell that has todays date (set cell value t
=today() )
sumrange - select the column next to the date range that has sales

to get the outcome that you were looking for select an empty cell an
type
="today's seles are "&C2)

where C2 is the cell with the sumif functio
 
P

Peo Sjoblom

=SUMIF(A2:A20,"="&TODAY(),B2:B20)

however that assumes that the "dates" are real excel dates and not text

=SUMPRODUCT(--(A2:A20=TEXT(TODAY(),"mmmm dd")),B2:B20)

--
Regards,

Peo Sjoblom

(No private emails please)
 
Top