+ Reply to Thread
Results 1 to 6 of 6

how make a self updating sales target using IF function

  1. #1
    Registered User
    Join Date
    05-19-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    how make a self updating sales target using IF function

    Ok... I thought I had it and discovered I'm just as close as I was when I started.. I'm having a really hard time explaining this... Please referencee the equation below:

    =IF(F5="","",IF(F6>=0,K3,(IF(C6>0,C6,0)+F6)))

    Capture.JPG

    The above mentioned equation is currently inserted in the highlighted cell (K4) in the picture above. Essentially, the only thing i didn't do was subtract what the "if" statement solves from k3 (hope i'm explaining that right). cell K4 should show $4800. Ultimately if the previous day's "$ to go" is less than zero, than I would subtract that from the sum of all previous positive days and only use that number if its total is less than zero. Therefore, when i get to Sunday's target, if Saturday's "$ to go" is less than zero, than we would subtract that number from all previous positive days and than use it only if that number is less than zero. than finally subtract that number from Sunday's budget. (Ok... I'm lost already and I'm typing this). I really hope someone understands what I'm trying to say. PLEASE HELP!
    Attached Images Attached Images

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how make a self updating sales target using IF function

    The fact that you haven't received any help with this is likely because you have chosen to provide an image instead of an Excel file that people can work with. Try uploading your file (with any personal/sensitive data removed).

  3. #3
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: how make a self updating sales target using IF function

    Which rows are calculated and which are fixed?

    Why should the yellow cell be $4800 if you are trying to make up for the day before you lost $200 so it should be added to 4000 giving $4200 and not $4800. I will go on my assumption and I propose the option below:

    Sales.xls
    Last edited by darknation144; 05-25-2012 at 09:18 AM.
    If someone helped give them rep using the star button.

    If you have received a satisfactory solution please mark the thread solved. If not Fotis will come for you at night :P

  4. #4
    Registered User
    Join Date
    05-19-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: how make a self updating sales target using IF function

    I sent the wrong example. Sorry for that. Atthached is the actual sheet I’m working with. In cell K4, the formula should work to equal F3 being the net profit from the previous 2 days was a gain of $800. Instead, it still subtracted the sum of both C6 & F6. That's why I'm attempting to create a formula based on my absolutely convoluted explanation in the initial post.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-19-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: how make a self updating sales target using IF function

    ok.. i figured out the forumla to make the one cell work the way I want. IS there an easier way to do them for the rest of the days instead of adding an additional IF function to each cell?

    correct forumla for K4: =IF(F5="","",IF(F6>=0,K3,(K3-IF((IF(C6>=0,C6,0)+F6)>=0,0,(IF(C6>=0,C6,0)+F6)))))

    please see the updated sheet.
    Attached Files Attached Files

  6. #6
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: how make a self updating sales target using IF function

    Basically you shouldnt use merge and centre like you have you should have just made the cells larger. Then you can just drag your formula across and it will work.

+ 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