Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
djeans
 
Posts: n/a
Default Need help with a formula for calculating based on a rage of dates


I am trying to add a formula to a schudule spread sheet that will allow
me to input dates of different events happening in town, and how many
people are expected to be at each event, then for each day give me a
total number of potential people in town.

For example:
Cells B4:B11 = days of the week (7/4 - 7/10)

Cells B12 and B13 = Start date and end date of event (conventions
etc.)

Cell B14 = Number of people at event.

I would like to have Cell A4:A11 contain the number of people in town.

If I only have one event in town, this is easy, but where I am running
into a problem is when there is more than one convention in town, and
with different begin and end dates.

For example:

B12 = 7/4, B13 = 7/10, B14 = 1000
C12 = 7/4, C13 = 7/5, C14 = 1000

I would like for Cell A4 and A5 to both show 2000 (total number of
people in town for event) but A6 thru A11 to show 1000 ( first
convention ended, second still going)

Can anybody give me a hint as to how to make this work?

Thanks in advance.

Darron


--
djeans
------------------------------------------------------------------------
djeans's Profile: http://www.excelforum.com/member.php...fo&userid=1401
View this thread: http://www.excelforum.com/showthread...hreadid=384089

  #2   Report Post  
duane
 
Posts: n/a
Default


in cell a4 and copied down thru a11

=SUMPRODUCT((B4=$B$12:$C$12)*(B4<=$B$13:$C$13)*($ B$14:$C$14))


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=384089

  #3   Report Post  
djeans
 
Posts: n/a
Default


Thank you for your reply,

I think that I made a stupid mistake in listing the formulas

Correction =

Cells B4:H4 = days of the week (7/4 - 7/10)

Cell I4 = Number of people at event.


Cells J4 and K4 = Start date and end date of event (conventions etc.)


I would like to have Cell B5:H5 contain the number of people in town.

Sorry for making such a rookie mistake.

Can you still help?

Thanks

Darron


--
djeans
------------------------------------------------------------------------
djeans's Profile: http://www.excelforum.com/member.php...fo&userid=1401
View this thread: http://www.excelforum.com/showthread...hreadid=384089

  #4   Report Post  
duane
 
Posts: n/a
Default


now i am confused because this last description only leaves room for one
event (in row 4)


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=384089

  #5   Report Post  
djeans
 
Posts: n/a
Default


Sorry,

I should have specified, The events will basically follow in the same
columns going down. IE, the next event would be in row 5, the third
row 6, and so on.

There may be as few as 2 events, but as many as 10.

Thanks again for your patience and help.

Darron


--
djeans
------------------------------------------------------------------------
djeans's Profile: http://www.excelforum.com/member.php...fo&userid=1401
View this thread: http://www.excelforum.com/showthread...hreadid=384089



  #6   Report Post  
duane
 
Posts: n/a
Default


in cell b5 and copied thru h5

=SUMPRODUCT((B$4=$J$4:$J$15)*(B$4<=$K$4:$K$15)*($ I$4:$I$15))


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=384089

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup cell contents in on sheet based on a formula in second sheet Michael Wright via OfficeKB.com Excel Worksheet Functions 1 April 30th 05 04:11 PM
conditional formula - based on 2 separate criteria andrewo-s Excel Worksheet Functions 10 March 14th 05 03:35 AM
Can a macro be made to work based on a formula? lonnied Excel Discussion (Misc queries) 0 January 26th 05 02:59 AM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM
Conditional Formatting based on Formula Pete Petersen Excel Worksheet Functions 1 January 17th 05 11:49 PM


All times are GMT +1. The time now is 07:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"