+ Reply to Thread
Results 1 to 15 of 15

countdown

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    6

    countdown

    Hello,

    I need function for countdown i.e. from 4,000 to 0 and then again from beginning.


    Number of 300,000 is decreasing to 0 , but in the step of 4,000 to 0.


    300,000 - 4000
    299,000 - 3000
    298,000 - 2000
    297,000 - 1000
    296,000 - 0 (4000)
    ----------------------
    295,000 - 3000
    294,000 - 2000
    ...

  2. #2
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: countdown

    Sorry, I don't understand. If you start from 300,000 and decrease by 4000, shouldn't the next value be 296000?

    So, if A1 is 300,000, in A2 use

    =A1-4000

    and copy down.

    I guess this is not what you want, but it's really hard to figure out what you want from your post above. What's with 295,000? Why 3000 there?

    You really need to explain the context in more detail. Better yet, post a workbook with some sample data and the results entered manually. Then we know what to aim for, if you explain the rules.
    Like a post? Click the star below it!

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: countdown

    If it's in a helper column, something like,

    B2 = IF( B1 > 0, B1 - 1, 4000)

    Anyway, IF(check_conditions, decrement, reset) should be a pretty reliable approach.

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: countdown

    I will try to explain.

    I have 300,000 components = 75 reels * (4000 per reel)

    when 300,000 decreases , 75 reels decreases too. but i need new cell with 4000 components decreasing to 0, AND THEN AGAIN 4000 to 0 .
    75 * 4000 = 300,000


    I have function for decreasing 4000 to 0, but i need countdown to 4000, and again, and again..

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: countdown

    Something like this maybe..

    In Column A
    =A1-1000 copied down

    In Column B,
    =IF(B1=1000,4000,B1-1000) copied down

    see attached
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Registered User
    Join Date
    08-21-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: countdown

    I will attach my workbook. You dont know my Serbian language but just do this


    Change: E3 (0 - > 133) Look: L21
    ----------------------------------------

    When E3=0 L21=4000
    when E3=133 L21=10

    when E3=134 L21=(20) I dont want L21= (20) i want again 3980

    i need L21 only decreasing 4000->0 and again back on

  7. #7
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: countdown

    Maybe

    =H21-E21*E3+IF(E21*E3>H21,H21,0)

  8. #8
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: countdown

    Please do not use private messaging to discuss questions. Also, please do not ask for email or skype contacts to discuss questions. The idea of a forum is that things are discussed for all to see.

  9. #9
    Registered User
    Join Date
    08-21-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: countdown

    @npamcpp

    Thats it ! But thats just for 2 times * 4000 ... When u type E3 more than 270 , L21 goes to (100) . I need again 4000

  10. #10
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: countdown

    I think you may want

    =H21-MOD(M21,H21)

  11. #11
    Registered User
    Join Date
    08-21-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: countdown

    Where to put that code? What is M21?

    =H21-E21*E3+IF(E21*E3>H21,H21,0) is that what i want.

    I just need always countdown on 4000.

    "Always countdown to number at H column (H21,H22,H23...)"

  12. #12
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: countdown

    Sorry, my bad. I posted a formula that was looking at a helper cell.

    This is the one you want in cell L21

    =H21-MOD($E$3*E21,H21)

    See attached.
    Modul pracenja potrosnje komponenti ap203.xlsx

  13. #13
    Registered User
    Join Date
    08-21-2012
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: countdown

    Alleluah :D What u want to drink??

  14. #14
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: countdown

    What do you have in your secret store?



    Glad this worked for you!!

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

    Re: countdown

    @ tropfouziK

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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