+ Reply to Thread
Results 1 to 7 of 7

Extracting data from a column into another but sorted and with 2 related cells next to it

  1. #1
    Registered User
    Join Date
    08-22-2020
    Location
    London, England
    MS-Off Ver
    Latest 2020
    Posts
    20

    Extracting data from a column into another but sorted and with 2 related cells next to it

    Hi,
    first time posting here so hopefully this is the right area.

    Please see the attached spreadsheet with sample data. What I need to do is the following:

    1) only paste data into the first sheet (formatted as already shown in there) and Excel extract data from Sheet 1 to fill in Sheet 2 and Sheet 3

    2) Sheet 2 contains only 3 of the 5 columns of Sheet 1: MyIndex, Serial Number and Sales. It is sorted by Sales LOW to HIGH. And next to each Sales cell it has the related Serial Number and MyIndex value.

    3) Sheet 3 is the same as Sheet 2 (explained in point 2 above) but: 1) instead of Sales it contains the Revenue column and 2) the Revenue Column is sorted from HIGH to LOW

    NOTE: If it helps I can make sure that the data pasted on Sheet 1 is always a known/fixed number of rows

    If possible:
    - not using extra columns/sheets (but if cannot be avoided then that's ok)
    - to do it with formulas and not macros/programming

    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Extracting data from a column into another but sorted and with 2 related cells next to

    Did you make SHEET2 and SHEET3 modes from the SHEET1 source table? if yes pls ref this attachment file
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-22-2020
    Location
    London, England
    MS-Off Ver
    Latest 2020
    Posts
    20

    Re: Extracting data from a column into another but sorted and with 2 related cells next to

    Thank you PMwk9128

    Yes.

    Please see attached updated spreadsheet. I tried the following but it seems to work only for Sheet 3 and not Sheet 2:

    1) I duplicated the formulas of a row in Sheet 3 to several other rows below it in Sheet 2 and also done the same in Sheet 3
    2) I added some random data in Sheet 1 to test the additional formulas I copied in the additional rows in Sheet 2 and 3

    But while Sheet 3 does seem to work Sheet 2 gives errors.

    Why is that?

    Also if you don't mind could you please explain the logic behind the formula? I looked it up and tried to figure it out but couldn't make much sense of it.

    Thank you
    Attached Files Attached Files

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,423

    Re: Extracting data from a column into another but sorted and with 2 related cells next to

    pls ref this attachment file
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Extracting data from a column into another but sorted and with 2 related cells next to

    @ Ricko_uk

    Why not make a table of your data in sheet 1.

    After that just the (in built) sort function.

    => Data => sort
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    08-22-2020
    Location
    London, England
    MS-Off Ver
    Latest 2020
    Posts
    20

    Re: Extracting data from a column into another but sorted and with 2 related cells next to

    Thank you AMwk9128,
    now it works!

    May I just ask you why in all formulas (Sheet 2 and 3) you use/reference cells which are above the one which the formula is in?

    Thank you again

    Attachment 692233
    Attached Images Attached Images

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Extracting data from a column into another but sorted and with 2 related cells next to

    Put the cursor on the word ROW in ROW(A8) to see that it is the k argument for the LARGE function.
    In the case of the screenshot it is retrieving the 8th largest value.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Extracting data from one column to populate cells with just specific fields
    By michalsm in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-24-2020, 12:50 PM
  2. Extracting Data Related To Top X%
    By JGeorge in forum Excel General
    Replies: 5
    Last Post: 09-20-2019, 12:22 AM
  3. extracting page number ranges based on prefix of sorted data
    By wdjohnson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2016, 05:34 PM
  4. [SOLVED] colorize rows with similar sorted cells in column
    By Mally in forum Excel General
    Replies: 8
    Last Post: 08-12-2013, 12:18 PM
  5. [SOLVED] how sort based on column with related data in multiple cells
    By sank1800 in forum Excel General
    Replies: 7
    Last Post: 02-18-2013, 11:28 AM
  6. Replies: 7
    Last Post: 05-31-2012, 11:24 AM
  7. Replies: 6
    Last Post: 07-05-2005, 12:05 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