ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Limelight Media - ExcelTip.com Books > F1 Get the most out of Excel Formulas & Functions

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-29-2007, 09:58 AM
Roxy Roxy is offline
Registered User
 
Join Date: 29 Oct 2007
Posts: 7
Roxy is on a distinguished road
Vlookup, sumproduct, if, or combonation of formulas?

I am working on a formula that is not working for me.

I am looking a range of time. Example: Months are consirdered periods. You have a period range of Jan '07- Dec '09. The period are represented as 200701-200912. So on one page I have a range of 200706-200805. I want to know what the range of this period is in months. I have the periods on another sheet with 1 next to it, the goal is for the formula to add the ones. Example:

RangeStart (Period Code): 200705
RangeEnd (Period Code): 200910 *Range:* 30 months

On another sheet I have:

MonTh Period code
1 200701
1 200702
1 200703
1 200704
1 200705
1 200706
1 200707
1 200708
1 200709
1 200710
1 200711
1 200712
1 200801
1 200802
1 200803
1 200804
1 200805
1 200806
1 200807
1 200808
1 200809
1 200810
1 200811
1 200812
1 200901
1 200902
1 200903
1 200904
1 200905
1 200906
1 200907
1 200908
1 200909
1 200910
1 200911
1 200912

My goal is to come have a formula for the *Range* cell. I want it to go over to the other page and look at the table and find those two (200705, 200910) and add up the ones to give me the range.

Thank you in advance.

Last edited by Roxy; 10-29-2007 at 10:00 AM.
Reply With Quote
  #2  
Old 10-29-2007, 10:06 AM
NBVC's Avatar
NBVC NBVC is offline
Forum Moderator
 
Join Date: 06 Dec 2006
Location: Mississauga, CANADA
Posts: 7,651
NBVC will become famous soon enough NBVC will become famous soon enough
Assuming your table is in columns A & B, then try:

=SUMIF(B:B,">="&E1,A:A)-SUMIF(B:B,">"&E2,A:A)

where E1 contains Start date code and E2 contains end date code.
__________________
Where there is a will there are many ways. Finding one that works for you is the challenge!

Please read the Forum Rules: Rules
Reply With Quote
  #3  
Old 10-29-2007, 10:11 AM
Roxy Roxy is offline
Registered User
 
Join Date: 29 Oct 2007
Posts: 7
Roxy is on a distinguished road
Thank you. That worked. I was trying to overcomplicate things. That worked nicely!
Reply With Quote
Reply

Bookmarks

New topics in F1 Get the most out of Excel Formulas & Functions


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


All times are GMT -4. The time now is 10:35 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0