Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
qflyer
 
Posts: n/a
Default Summing Values In Current Month Only


Hey guys,

I have my pilot's logbook in a spreadsheet, and I'd like to total
flight time in the current month only.

Column A is the date of each flight.
Column Q is the amount of flight time on that flight.

So I want to know my flight time in June of 2005, which is done simply
enough with
=SUMPRODUCT(--(MONTH(A50:A3000)=6),--(YEAR(A50:A3000)=2005),Q50:Q3000)

Is there a formula I can use that automatically updates the current
month and year without me having to enter it myself? When July comes
around, I'd like the formula to just look at the month of July
automatically without me changing the formula to
=SUMPRODUCT(--(MONTH(A50:A3000)=7),--(YEAR(A50:A3000)=2005),Q50:Q3000)

Hope my description isn't too unclear.

Thanks,
Scott


--
qflyer
------------------------------------------------------------------------
qflyer's Profile: http://www.excelforum.com/member.php...o&userid=24448
View this thread: http://www.excelforum.com/showthread...hreadid=382376

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Replace =6 with:

=MONTH(TODAY())

And replace =2005 with:

=YEAR(TODAY())

Biff

"qflyer" wrote in
message ...

Hey guys,

I have my pilot's logbook in a spreadsheet, and I'd like to total
flight time in the current month only.

Column A is the date of each flight.
Column Q is the amount of flight time on that flight.

So I want to know my flight time in June of 2005, which is done simply
enough with
=SUMPRODUCT(--(MONTH(A50:A3000)=6),--(YEAR(A50:A3000)=2005),Q50:Q3000)

Is there a formula I can use that automatically updates the current
month and year without me having to enter it myself? When July comes
around, I'd like the formula to just look at the month of July
automatically without me changing the formula to
=SUMPRODUCT(--(MONTH(A50:A3000)=7),--(YEAR(A50:A3000)=2005),Q50:Q3000)

Hope my description isn't too unclear.

Thanks,
Scott


--
qflyer
------------------------------------------------------------------------
qflyer's Profile:
http://www.excelforum.com/member.php...o&userid=24448
View this thread: http://www.excelforum.com/showthread...hreadid=382376



  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Sure, one way

=SUMPRODUCT(--(MONTH(A50:A3000)=MONTH(TODAY())),--(YEAR(A50:A3000)=YEAR(TODAY())),Q50:Q3000)


--
Regards,

Peo Sjoblom

(No private emails please)


"qflyer" wrote in
message ...

Hey guys,

I have my pilot's logbook in a spreadsheet, and I'd like to total
flight time in the current month only.

Column A is the date of each flight.
Column Q is the amount of flight time on that flight.

So I want to know my flight time in June of 2005, which is done simply
enough with
=SUMPRODUCT(--(MONTH(A50:A3000)=6),--(YEAR(A50:A3000)=2005),Q50:Q3000)

Is there a formula I can use that automatically updates the current
month and year without me having to enter it myself? When July comes
around, I'd like the formula to just look at the month of July
automatically without me changing the formula to
=SUMPRODUCT(--(MONTH(A50:A3000)=7),--(YEAR(A50:A3000)=2005),Q50:Q3000)

Hope my description isn't too unclear.

Thanks,
Scott


--
qflyer
------------------------------------------------------------------------
qflyer's Profile:
http://www.excelforum.com/member.php...o&userid=24448
View this thread: http://www.excelforum.com/showthread...hreadid=382376


  #4   Report Post  
qflyer
 
Posts: n/a
Default


That was simple enough...now why didn't I think of that, lol.

Thank you both

Scott


--
qflyer
------------------------------------------------------------------------
qflyer's Profile: http://www.excelforum.com/member.php...o&userid=24448
View this thread: http://www.excelforum.com/showthread...hreadid=382376

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
Formula for current month minus one = Quarter number in a macro. Pank Excel Discussion (Misc queries) 11 June 22nd 05 02:47 PM
HELP - need to returns the current number of past month this year and ... elz64 Excel Worksheet Functions 6 April 6th 05 01:37 PM
Current Month Howard Excel Worksheet Functions 6 March 17th 05 05:35 PM
Current Month Query Sunshinegm Excel Worksheet Functions 1 February 15th 05 01:41 AM
UserForm to select current month or earlier Steve Excel Discussion (Misc queries) 2 January 21st 05 09:41 PM


All times are GMT +1. The time now is 11:42 AM.

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

About Us

"It's about Microsoft Excel"