Summing ranges based on text and dates HELP!

rpthoth

New Member
Joined
Feb 5, 2003
Messages
2
I have the need to sum a column based on names and dates. I have a spreadsheet that contains the following named columns(type of data in parenthesis):

SalesOwner(text, i.e.: employee name), FirstInvoiceDate(date field), DocDate(date field), Billings(numeric). What I need to do is this: I need to sum the Billings column IF the SalesOwner column = Given employee name AND the Docdate is less than or equal to FirstInvoiceDate + 365.

(this is a sales bonus calculation where the sales owner gets a monthly bonus for the first year that we bill the client. Docdate refers to the current invoice, FirstInvoiceDate refers to the first time we invoiced the client.

I was trying to use DateValue to get the value of the FirstInvoiceDate and DocDate but it doesn't seem that you can use that function with a range, which is what these columns are.
My attempts look something like this:
SUM((DATEVALUE(DocDate)<=DATEVALUE(FInvDate)+365)*(SalesOwner="Bonnie")*Billings)

Any ideas that ANYONE has would be greatly appreciated!!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Not sure I read you correctly, but try...

=SUMPRODUCT((SalesOwnerRange=F1)+0,(DocDateRange<=G1+365)+0,BillingsRange)

where F1 houses an employee name and G1 a date condition of interest.
 
Upvote 0

Forum statistics

Threads
1,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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
Back
Top