+ Reply to Thread
Results 1 to 3 of 3

IF statement or macro?

  1. #1
    Registered User
    Join Date
    05-31-2010
    Location
    Saskatoon, Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    IF statement or macro?

    I am trying to create a worksheet where I can calculate growth based on the launch year. Currently I have everything entered with the launch of 2012, but I would like everything to calculate automatically when the launch year is changed (B6). For example, if 2013 is typed as the launch year, all the numbers from F6 to J6 would be the same, except they would now shift over and start and G6. I have tried using nested IF statements, but it isn't calculating correctly. Here is what I have so far in cells D6 and E6: =IF($B$6=D5,$A$6*B3,IF($B$6<D5,C6*C3,0)), but I know it will run into trouble as soon as I move the formula into 2012. Is there a way to fix this IF statement, or do I need to create a macro. Thanks for your help.
    Attached Files Attached Files
    Last edited by bmark; 05-31-2010 at 03:59 PM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: IF statement or macro?

    Paste in cell D6:

    Please Login or Register  to view this content.
    and autofill right.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    05-31-2010
    Location
    Saskatoon, Canada
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: IF statement or macro?

    Thanks for your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1