+ Reply to Thread
Results 1 to 12 of 12

Retrieving first, second and following numerical values of multiple columns

  1. #1
    Registered User
    Join Date
    05-26-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    28

    Retrieving first, second and following numerical values of multiple columns

    Hey Excel Forum.

    I have a list of items in column A that I have sorted in 3 different groups, as shown in the attached image. After having grouped the items, I want to combine the items in a single column without the empty cells and #N/A cells.

    So looking at the picture, I want to create a new column where cell X1 will show 6, X2 will show 7, then 13, 20 etc. all the way to 49. The next number should then be the first number of Group 2, i.e 2, followed by 3 and so forth.

    Is there a way to get this done.

    All I have so far is

    =INDEX(N2:N200;MATCH(1;INDEX(ISNUMBER(N2:N200)+0;0);0))

    Which looks through Group 1 and retrieves the first value.

    Any ideas how I can progress, and get the remaining values?

    Hope it makes a bit of sense after all.

    Edit: Added excel and JPEG files.

    The "Sorted" values are found in columns N:Q. Column R is where I have tried to make one column with the sorted values.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Nbisgaard; 10-16-2015 at 06:49 AM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Retrieving first, second and following numerical values of multiple columns

    Many members are unable to see images in the *.png format.

    If you need to post an image post it in the *.jpg format.

    Even better than posting images... post a SMALL sample file. That way we can test solutions directly in the file with the relevant data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-26-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    28

    Re: Retrieving first, second and following numerical values of multiple columns

    My apologize, I added a Jpg and a sample excel file for people to check out.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Retrieving first, second and following numerical values of multiple columns

    Try
    R2=INDEX(N$3:N$56,SMALL(IF(ISNUMBER(N$3:N$56),ROW($N$3:$N$56)-ROW($N$2)),ROW(1:1))) with CTRL+SHIFT+ENTER ( It is an array formula) and drag down.

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


    or

    R2=INDEX(N$3:N$56,AGGREGATE(15,6,ROW($N$3:$N$56)/(ISNUMBER(N$3:N$56))-2,ROW(1:1))) and drag down.( It's non array formula)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by shukla.ankur281190; 10-16-2015 at 07:10 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    05-26-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    28

    Re: Retrieving first, second and following numerical values of multiple columns

    Aha, that was clever. I had given the small function some thought but couldn't see how it could work.

    Using said formula I can a column for each of the sorted groups, as shown in the image below, with all the #N/A's filtered out. The final step is then to try and combine the four columns into one. Any ideas how this step could be done?

    So the "Final sorting" column will show,
    6,7,13 .... , 53, 54, 2,3,9 ... , 51, 47, 54, 1, 4 etc..
    Attached Images Attached Images

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Retrieving first, second and following numerical values of multiple columns

    Can you tell us that what actual digits will show after final shorting ??

  7. #7
    Registered User
    Join Date
    05-26-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    28

    Re: Retrieving first, second and following numerical values of multiple columns

    Yes, ofcourse.
    The ultimate goal is to create a column that shows the following:

    Please Login or Register  to view this content.
    Edit: I see I made a small error in my sorting columns, so item 54 appeared twice..

    The pic below shows the corrected, sorted values.
    Attached Images Attached Images
    Last edited by Nbisgaard; 10-16-2015 at 07:22 AM.

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Retrieving first, second and following numerical values of multiple columns

    Try
    V3=IFERROR(IFERROR(IFERROR(INDEX($R$3:$R$56,ROWS($X$2:X2)),INDEX($S$3:$S$56,ROWS($X$2:X2)-ROWS($R$3:$R$15))),INDEX($T$3:$T$56,ROWS($X$2:X2)-ROWS($R$3:$R$15)-ROWS($S$3:$S$24))),INDEX($U$3:$U$56,ROWS($X$2:X2)-ROWS($R$3:$R$15)-ROWS($S$3:$S$24)-ROWS($T$3:$T$4)))

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

  9. #9
    Registered User
    Join Date
    05-26-2015
    Location
    Copenhagen
    MS-Off Ver
    2010
    Posts
    28

    Re: Retrieving first, second and following numerical values of multiple columns

    Thanks a lot, it ended up working quite well, with very little manual work.
    Should anyone be interested in the final solution then I have added the excel file.
    Attached Files Attached Files

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Retrieving first, second and following numerical values of multiple columns

    Glad to help you .... Please mark as it solved and if you liked my solution you can add my reputation by clicking on star * icon.

  11. #11
    Registered User
    Join Date
    10-01-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    21

    Re: Retrieving first, second and following numerical values of multiple columns

    @Ankur Shukla,

    Little changes post #8 formula

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

  12. #12
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Retrieving first, second and following numerical values of multiple columns

    Yeah That is nice. I have to need add rep for clean!!!

+ 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. [SOLVED] Retrieving a value based on comparison of multiple columns
    By Rikster in forum Excel General
    Replies: 9
    Last Post: 11-04-2014, 07:19 AM
  2. Sorting information by numerical values in multiple columns
    By CutMeOwnPriceDibbler in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-22-2014, 02:58 PM
  3. Comapre numerical values in one colum with other columns
    By newbieroh in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-13-2012, 11:01 AM
  4. [SOLVED] Re-arranging rows according to one columns numerical values
    By SteveyNZ in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-14-2012, 06:53 AM
  5. Finding multiple numerical values
    By BazilM in forum Excel General
    Replies: 7
    Last Post: 06-26-2012, 07:57 AM
  6. Retrieving values from Multiple worksheets
    By 00Able in forum Excel General
    Replies: 3
    Last Post: 01-09-2011, 03:07 AM
  7. Matching multiple columns and retrieving a value
    By shzdug in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-09-2006, 05:49 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