+ Reply to Thread
Results 1 to 6 of 6

Need help extracting single data from cell with multi data

  1. #1
    Registered User
    Join Date
    11-13-2018
    Location
    Washington US
    MS-Off Ver
    Windows 365
    Posts
    31

    Need help extracting single data from cell with multi data

    Hello, in the attachment there are two tabs, one named "dashboard" and one named "Jobs"

    In the JOB tab I need to pull all applicable S/O (order doesn't matter) for corresponding job and earliest Ship date of all applicable ship dates for corresponding job.
    Must search all job columns (columns G, H & I) on DASHBOARD.

    Examples:
    On the job tab, I need Cell D18 to populate S/O with "17897" and Ship date with "2/5/2020"
    On the job tab, I need Cell D14 to populate S/O with "16953, 17897, 17366-1-1" and Ship date with "1/25/2020"


    Thanks so much!

    Dawn
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Need help extracting single data from cell with multi data

    First, Windows 7 Professional isn't an Office version. I'll assume you're using Excel 2000.

    On one hand, Jobs!D18:E18 are simple because Jobs!A18 appears only once in Dashboard!G2:I25, in G25. Better to use another column for row indices common to both columns in the same row.

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

    Then use that in INDEX formulas in columns D and E.

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

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

    On the other hand, Jobs!D14:E14 aren't simple at all. The best approach depends on your actual Excel version, which you haven't provided. In Excel 2000, given everything it lacks compared to more recent versions, you'd be best off doing the entire lookup and consolidation in VBA. In Excel 365, you could almost avoid VBA entirely; almost because you have job numbers in Jobs!A2:A20 of varying sizes and formats, and Dashboard!G2:I25 essentially contains free-form text. If you had a job number 3456, you'd need additional logic to prevent matching that as a substring of 23456, 34567 or 234567. That requires regular expressions (if you want this to be efficient), which requires VBA.

    Tangent: your data is perfectly suited to give you headaches and nightmares going forward even if you get a working solution to this particular problem. If you CAN clean up/normalize your data, you'd be far better off doing so.

  3. #3
    Registered User
    Join Date
    11-13-2018
    Location
    Washington US
    MS-Off Ver
    Windows 365
    Posts
    31

    Re: Need help extracting single data from cell with multi data

    I have Excel 2019 MSO.

    Also, would it help if i remove all but job number, 1 comma and 1 space for each job in Columns G - I on the dashboard tab? (cannot get around using both 4 and 5 digit job numbers)

    I can also update all S/O numbers on dashboard tab to following format variants only:
    xxxxx-x-x
    xxxxx-x-xx
    xxxxx-xx-x
    xxxxx-xx-xx

    Lastly, the formulas that were already in the spreadsheet do not need to apply. They were left there by mistake.

    Sorry for the ambiguity. Im unsure of the possible search type formulas are available in excel
    Last edited by Dawn Clark; 06-09-2021 at 05:23 AM.

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

    Re: Need help extracting single data from cell with multi data

    Please upload an Excel sheet that has the change to the job number column described in post #3.
    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.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need help extracting single data from cell with multi data

    Try this
    In D2

    =IFERROR(INDEX(Dashboard!$C:$C,AGGREGATE(15,6,ROW(Dashboard!$A$2:$A$25)/(ISNUMBER(SEARCH($A2,Dashboard!$G$2:$I$25))),1)),"")

    In F2

    =IFERROR(INDEX(Dashboard!$D:$D,AGGREGATE(15,6,ROW(Dashboard!$A$2:$A$25)/(ISNUMBER(SEARCH($A2,Dashboard!$G$2:$I$25))),1)),"")

    Copied down.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Need help extracting single data from cell with multi data

    I have revised formula for D2
    Please Login or Register  to view this content.
    For F2
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Taking a single cell that extracting only data desired.
    By JamesJohnson31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2019, 01:01 PM
  2. Replies: 2
    Last Post: 02-25-2015, 08:26 PM
  3. Replies: 19
    Last Post: 10-05-2012, 01:03 PM
  4. Replies: 7
    Last Post: 05-31-2012, 11:24 AM
  5. [SOLVED] Extracting Data Located in Single Cell
    By crazysniper in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 06-01-2011, 11:03 AM
  6. Extracting data from a single cell
    By Stanky_R in forum Excel General
    Replies: 3
    Last Post: 04-25-2010, 10:27 PM
  7. Convert multi row data to single row data in excel using vb
    By Conquest247 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-15-2010, 01:18 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