+ Reply to Thread
Results 1 to 8 of 8

Create ascending number

  1. #1
    Forum Contributor
    Join Date
    05-21-2019
    Location
    Tabriz,Iran
    MS-Off Ver
    2024
    Posts
    195

    Create ascending number

    Hi all,

    I have four number: 5,4,3,2


    I would like be result like this is the only one column.please

    1,2,3,4,5,1,2,3,4,1,2,3,1,2


    please, without VB & helper column

    Thank you so much
    Attached Files Attached Files
    Last edited by Yaghoub61; 03-23-2020 at 06:18 AM.
    Notice:
    my main language is not English

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Create ascending number

    copy paste below in E2 then hold control and shift together then hit enter to make it array formula and drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Right now your data is in 4 rows As from A2 to A4 if you increase the data set as from A2 to A7 then change the references accordingly like you need to change red part to 6 as you have data now in 6 rows and change the blue part to 7
    Attached Files Attached Files
    Last edited by hemesh; 03-22-2020 at 07:55 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Create ascending number

    Just for curiosity:

    As you can see the formula is rather very complicated. While with VBA it would be much easier.

    Why have you asked for no VBA and no helper columns?
    Best Regards,

    Kaper

  4. #4
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Create ascending number

    @ Yaghoub61, Thanks for the rep !

    If that takes care of your problem then take a moment to mark the thread as solved by going to thread tools and marking it as solved.

  5. #5
    Forum Contributor
    Join Date
    05-21-2019
    Location
    Tabriz,Iran
    MS-Off Ver
    2024
    Posts
    195

    Re: Create ascending number

    Excellent!

    Thank you so much for help Hemesh & Kaper

  6. #6
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Create ascending number

    you are welcome Yaghoub!

  7. #7
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Create ascending number

    at D2
    =IFERROR(IF(ROW(1:1)>SUM($A$2:$A$5),"",IF(COUNTIF(D$1:D1,D1)=IFERROR(RANK(D1,$A$2:$A$5),0),1,D1+1)),1)
    copy down

  8. #8
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Create ascending number

    Ghozi, nicely tailored solution but this will work with the question only if we do change the numbers as 5,8,10,2 then result will be different.

    This is a kind of good problem and I am happy that you stepped in as I was also thinking of some other solution.

+ 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. How do I create an ascending number pattern?
    By jackblack2 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2018, 10:12 AM
  2. [SOLVED] I need to create an ascending sort across multiple columns
    By zookeepertx in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2015, 05:49 PM
  3. how to create a column that gives ascending values
    By Meeraan in forum Excel General
    Replies: 2
    Last Post: 01-17-2014, 12:58 AM
  4. Create List in Ascending order and unique value
    By Arsalansansari in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2012, 02:34 PM
  5. create descending or ascending dates
    By djarcadian in forum Excel General
    Replies: 1
    Last Post: 02-18-2008, 10:10 PM
  6. next ascending number
    By sparx in forum Excel General
    Replies: 6
    Last Post: 04-04-2007, 04:33 PM
  7. Ascending Number Querry
    By sparx in forum Excel General
    Replies: 5
    Last Post: 03-15-2007, 08:59 AM

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