# Adding daily totals

#### ffgilby

##### New Member
Hi,
OK, here is the problem I have today. I have built a several page worksheet to track payments for an office. This adds the total in payments from several columns and gives the total for the entire worksheet. What I am looking for is a function to pull the total from one column if criteria matches another column. Here is what I'm trying to find: SUM(E13:E112) if(B13:B112)=A5. Then the same idea just A5+1, then A5+2 and so on. Exactly what I need is the total for people paying cash on one day, then each sequential day there after. Cash amount will be in column E, with dates in column B, with the beginning date in A5. I have tried several functions with no luck.

Any direction with this would be appreciated.

### Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

#### MARK858

##### MrExcel MVP
Maybe I'm reading it wrong but is it not just a normal Sumif formula i.e.
Code:
``=SUMIF(\$B\$13:\$B\$112,A5,\$E\$13:\$E\$112)``

#### MARK858

##### MrExcel MVP
Or Across multiple sheets (Sheetnames in L5 - L7 in the totals sheet)...

Code:
``=SUMPRODUCT(SUMIF(INDIRECT("'"&\$L\$5:\$L\$7&"'!\$B\$13:\$b\$112"),A5,INDIRECT("'"&\$L\$5:\$L\$7&"'!\$E\$13:\$e\$112")))``

#### ffgilby

##### New Member
That worked perfect. I used that same formula before, but the wrong order.

THANKS!!

Replies
9
Views
73
Replies
9
Views
208
Replies
4
Views
36
Replies
3
Views
38
Replies
4
Views
68

1,109,445
Messages
5,528,801
Members
409,835
Latest member
Mafu1267

### This Week's Hot Topics

• Change military grades into rank
Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
• VBA COUNTIF SOLUTION
Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
• INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
• Auto-Create a monthly Sign in sheet for preschool students
The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
• VBA vlookup multiple results
Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
• Extract values for earliest/latest times
I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...