+ Reply to Thread
Results 1 to 11 of 11

Accumulated numbers are generated by four conditions

  1. #1
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    206

    Accumulated numbers are generated by four conditions

    Formular Starting from J2, the four conditions are B1, D1, F1, H1

    J2 cell how to write the formula down

    B1 is starting first number
    D1 is Ending number
    F1 increase a nnumbers
    H1 increase each time


    Can someone please help me ? It would be much appreciated. Thanks in advance
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by metrostar; 10-03-2020 at 07:51 AM.

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Accumulated numbers are generated by four conditions

    Hi,


    K2 =$B$1
    K3 =IF(COUNTIF($K$2:K2,K2)>=$F$1,K2+$H$1,K2)

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Accumulated numbers are generated by four conditions

    Please try at J2

    =IF(ROWS(J$2:J2)>$D$1*$F$1,"",INT((ROWS(J$2:J2)-1)/$F$1)*$H$1+$B$1)
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    206

    Re: Accumulated numbers are generated by four conditions

    TQ

    Excel Expert, it doesn't seem to work
    I want the blue color answer
    Please see my new file
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    206

    Re: Accumulated numbers are generated by four conditions

    Quote Originally Posted by Bo_Ry View Post
    Please try at J2

    =IF(ROWS(J$2:J2)>$D$1*$F$1,"",INT((ROWS(J$2:J2)-1)/$F$1)*$H$1+$B$1)
    Bo_Ry is what I want, you are too good
    Excellent solution. Thank you both, thank you very much for the solution.

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Accumulated numbers are generated by four conditions

    K2 =$b$1

    k3 =if(countif($k$2:k2,k2)>=$f$1,k2+$h$1,k2)
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    206

    Re: Accumulated numbers are generated by four conditions

    Quote Originally Posted by belinda200 View Post
    K2 =$b$1

    k3 =if(countif($k$2:k2,k2)>=$f$1,k2+$h$1,k2)
    Right this time, it's what I want, thank you

  8. #8
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    206

    Re: Accumulated numbers are generated by four conditions

    There is another small problem. My question is not clear. If the data is greater than or equal to D1 and it becomes blank, how to modify the formula?
    For example, D1 is 10, more than 10, the following are all blank
    Attached Images Attached Images
    Last edited by metrostar; 10-03-2020 at 08:24 AM.

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Accumulated numbers are generated by four conditions

    Please try at J2
    better one for text

    =TEXT(INT((ROWS(J$2:J2)-1)/$F$1)*$H$1+$B$1,"[<="&$D$1&"];")

    or Number

    =IFERROR(--TEXT(INT((ROWS(J$2:J2)-1)/$F$1)*$H$1+$B$1,"[<="&$D$1&"];"),"")
    Attached Files Attached Files
    Last edited by Bo_Ry; 10-03-2020 at 08:46 AM.

  10. #10
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Accumulated numbers are generated by four conditions

    Here is mine with a correction

    K2 =B1
    K3 =IF(IF(K2>$D$1,"",IF(COUNTIF($K$2:K2,K2)>=$F$1,K2+$H$1,K2))>$D$1,"",IF(K2>$D$1,"",IF(COUNTIF($K$2:K2,K2)>=$F$1,K2+$H$1,K2)))
    Attached Files Attached Files
    Last edited by Limor_OP; 10-03-2020 at 08:59 AM.

  11. #11
    Forum Contributor
    Join Date
    08-25-2020
    Location
    Taiwan
    MS-Off Ver
    MS 365+win 10(64bit)
    Posts
    206

    Re: Accumulated numbers are generated by four conditions

    awesome! Very grateful! Both of You ,solved my problem perfectly, Much appreciated!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro For Accumulated Numbers After I Erase Data in Other Cells
    By gillygilly6 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2020, 01:03 AM
  2. [SOLVED] How to fix generated random numbers in this formula?
    By omid020 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2013, 03:20 AM
  3. Replies: 8
    Last Post: 02-27-2013, 05:36 PM
  4. Totalling a row of numbers generated by formulas
    By retiredjhawk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-09-2007, 01:07 AM
  5. I want random numbers generated without repeating
    By Johncobb45 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-08-2006, 08:53 PM
  6. [SOLVED] to find missing serial numbers in randomly generated numbers
    By B.H. Hadi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-01-2005, 07:00 PM
  7. How do I add the sum of a series numbers generated by Rnd gen?
    By RandomProblems in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2005, 12:06 PM

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