Tab 2 I calculate based on time ranges
A B C
Start End # of customers
6:01 6:30 need formula
6:31 7:00
7:01 7:30
etc.
Does anyone have a good formula? I have tried a few and the latest one
isn't working right:
=SUMIFS(Tab1!b2:b200,Tab1!a4:a200,">="&A2,Tab1!a4:a200,"<="&B2)
Any suggestions....
Thanks!
--
en
Look at this:
=SUMIF(Tab1!A2:A20,">="&A2,Tab1!B2:B20)-SUMIF(Tab1!A2:A20,">"&B2,Tab1!
B2:B20)
Regards,
Per
HTH,
Barb Reinhardt
=SUMPRODUCT(('Tab1'!A2:A200>=A2)*('Tab1'!A2:A200<=B2),'Tab1'!B2:B200)
If this post helps click Yes
---------------
Jacob Skaria
=SUMIFS('Tab1'!B$2:B$200,'Tab1'!A$2:A$200,">="&A2,'Tab1'!A$2:A$200,"<="&B2)
Note that in Excel 2007 there is a cell address TAB1 so in order for Excel
to know you're referencing a sheet named Tab1 and not the cell address TAB1
the sheet name Tab1 needs to be enclosed in single qoutes: 'Tab1'.
--
Biff
Microsoft Excel MVP
"envy" <en...@discussions.microsoft.com> wrote in message
news:AC1BC9F7-CB9F-49BB...@microsoft.com...