If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Calculate field if date exist, if not, don’t calculate ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-11, 10:36
vtecdan vtecdan is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
Calculate field if date exist, if not, don’t calculate ?

Hi, I’m new to this forum. Thanks to Google I have found this forum.

I’m pretty sure you guys can help me with this issue.

Here’s what I want to do. I have three boards. One for year 2010, the other one for year 2011 and the last one for “comparison”. I want to compare 2010 to 2011. I have an SQL database that I extract the data into Access then I import the info into Excel. If you look at my attached example, the thing is 2011 doesn’t have 12 months yet. So my calculation gets mixed up with other cells. And next year, I’d like to compare 2011 to 2012, I will have the same issue.

I need to find a ways to say : If CAT BCN from 2010 Month field EQUAL to CAT BCN from 2011 Months field DO calculation IF NOT (the month doesn’t exist yet) blank.

I hope it makes sense to you guys.

Any help will be appreciated!

Daniel

PS : attached file is an Excel file in a ZIP file
Attached Files
File Type: zip Monthly Report-test .zip (20.6 KB, 3 views)
Reply With Quote
  #2 (permalink)  
Old 11-30-11, 16:47
vtecdan vtecdan is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
Any ideas, anyone ?!?
Reply With Quote
  #3 (permalink)  
Old 12-01-11, 18:45
JerryDal JerryDal is offline
Registered User
 
Join Date: Jan 2002
Location: Bay Area
Posts: 473
How about this for starters. Say you have 3 worksheets named 'Compare' '2011' and '2010'.
Assuming you have all your data for 2010 and 2011 data only through October, try this formula in the Compare sheet, cell D6 and copied down for the 12 months:

Code:
=IF('2011'!D6>0,'2011'!D6-'2010'!D6,"")
If something more than this is needed and you need additional help, provide specific details of what you are comparing and where the information is stored.

Your example has a single sheet. Do you want to compare data between workbooks?
Reply With Quote
  #4 (permalink)  
Old 12-07-11, 11:39
vtecdan vtecdan is offline
Registered User
 
Join Date: Nov 2011
Posts: 3
Thanks Jerry !!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On