Go Back   TalkBass Forums > Bass Guitar Forums > Bass Guitar Forums > Off Topic [BG]
Register Rules/FAQ/CUP Members List Search Today's Posts Mark Forums Read

Off Topic [BG] Non-music-related discussion and chat


Supporting Membership
Thank You

Latest Supporting Member
Donate to Upgrade Today

Reply
 
Thread Tools Search this Thread
  #1  
Old 01-10-2008, 12:25 PM
Registered User
 
Join Date: Jan 2007
Location: St. Louis, MO
Send a message via Yahoo to lopxtc Send a message via Skype™ to lopxtc
Need some assistance from any Excel gods here ...

Sign in to disble this ad
Hey all ...

So Ive been tasked with something that should be really simple but I am not a windows person (Unix geek, but that aside) let alone an excel person ...

What I have is a single workbook with one worksheet. In it there are multiple columns. Column B contains the date in mm/dd/yy format, and column C contains numbers. What I need to do is create a function that will scan through column B matching only month and year (so 1/*/06 meaning any day in month 1 year 06) and then add the number values present in column C that match this month / year combo.

Damned if for the life of me I cannot get this to work correctly ... any suggestions from excel gods on here would be greatly appreciated.

Aaron
  #2  
Old 01-10-2008, 02:58 PM
Registered User
 
Join Date: May 2004
Location: Las Vegas
Send a message via MSN to BlacktotheBlind
If I didn't have such a headache I might have actually tried to figure that out. But since I'm no help, check out this website. You might be able to find the help you need.

http://www.techonthenet.com/excel/index.php
  #3  
Old 01-10-2008, 08:20 PM
Bass Thunder's Avatar
Registered User
 
Join Date: Jan 2007
Location: Oxnard Shores, California
Supporting Member
The quickest way is to do a SORT and then SUBTOTAL for date ranges (which is a built in auto filter and sumif combo).

A fancier way would be to split the date into MONTH() and YEAR() in 2 new columns and then CONCATENATE() the 2 back to get a label like "Jan 2006". Then do as many as you need SUMIF() with the "condition" being "Jan 2006", and "Feb 2006", "March 2006", etc, entered in other cell locations referenced.

The only trick on the SUMIF() is that the calculated condition needs to be to the left of the values to be summed. You can just repeat the values to be added in a new column to the right.

You could also do something with the IF() AND() combo formula =IF(AND(date<=max,date>=min),"yes","no") then SUMIF the "yes".

If you do that stuff often, or want maximum reporting abilities on large volumes of info, you need to look into the Pivot Table function. This is Excel on turbo charge. You can then do nested database look-ups and indexing - fun stuff. Add in named ranges and macros and you're in business.

Good Luck

Last edited by Bass Thunder : 01-10-2008 at 08:25 PM.
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Follow TalkBass on Twitter   Visit TalkBass on Facebook  

All times are GMT -6. The time now is 05:06 AM.




Copyright 2011 Talk Music Group Inc. All rights reserved.
Play guitar? Visit our new sister site TalkGuitar.com [beta]
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.