+ Reply to Thread
Results 1 to 13 of 13

Searching for text strings in one cell, returning values from another

  1. #1
    Registered User
    Join Date
    01-19-2015
    Location
    Dallas Tx
    MS-Off Ver
    Excel:mac 2011 14.4.7
    Posts
    6

    Searching for text strings in one cell, returning values from another

    I have an inventory workbook with 3 tabs ("Count Sheet", "Report A", "Report B") we enter the inventory on the "Count Sheet", and I need to generate a formula to search that sheet for a value and return the value in an adjacent cell eg: search "count sheet" for "Widget 1" return "number on hand 2 cells to the right" so all the search terms will be in Column C and all all the counts will be in Column H any ideas on a simple / easy way to do this?

    Thanks

    TJ

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Searching for text strings in one cell, returning values from another

    Yep. Not difficult, but I can't second guess how your data re structured. Please, attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,732

    Re: Searching for text strings in one cell, returning values from another

    You'd normally use VLOOKUP for this. Attach a sample workbook then it will be easier to see where "Widget 1" is selected.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    01-19-2015
    Location
    Dallas Tx
    MS-Off Ver
    Excel:mac 2011 14.4.7
    Posts
    6

    Re: Searching for text strings in one cell, returning values from another

    Test Workbook.xls

    we are filling the "on hand count" column (currently just an =cell formula)In the Report sheets from the "count sheet" but we need to search for the name i specify... (note, widget 1 may not be called widget 1 on all sheets, will need to specify value in formula)

    the reason for this is we may add rows or columns in any place on that count sheet or reorder it as time goes on but it still needs to fill out the report sheets correctly...


    Thanks

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Searching for text strings in one cell, returning values from another

    I'm not convinced I'm on the right lines here... especially when you say things like widget 1 might not always be widget 1... But take a look

  6. #6
    Registered User
    Join Date
    01-19-2015
    Location
    Dallas Tx
    MS-Off Ver
    Excel:mac 2011 14.4.7
    Posts
    6

    Re: Searching for text strings in one cell, returning values from another

    the value in the column "item" may not be the same in all pages, it is in the example for clarity, but in the real sheet, it might be "widget 1" on the count sheet and on the "report a" sheet it might be "widget A" and on report b it could be "widget purple" so we can't reference the name on that sheet, the search string must be specified in the formula...

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Searching for text strings in one cell, returning values from another

    Do you mean that the one thing can have 3 different names, depending on... whatever? Or do you ean that there will always be a widget !, but it miht not be in the same place on all sheets?

  8. #8
    Registered User
    Join Date
    01-19-2015
    Location
    Dallas Tx
    MS-Off Ver
    Excel:mac 2011 14.4.7
    Posts
    6

    Re: Searching for text strings in one cell, returning values from another

    Both, the order will not be the same on all 3 sheets by a long shot... and the two reports use different names (darn departmental differences), so i will need to manually enter the search string for each cell on the reports to search the count sheet... eg if the formula is looking for widget 1 i would edit a formula to be something like this:

    ='count sheet' find 'widget 1' return value from "column labeled 'total on hand'"

    make sense?

    i will have to enter the 'widget 1' value by hand in each cell to match what i'm looking for on the count sheet

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Searching for text strings in one cell, returning values from another

    OMG.... Ever thought of organising corporate floggings to promote organisational cohesion?

  10. #10
    Registered User
    Join Date
    01-19-2015
    Location
    Dallas Tx
    MS-Off Ver
    Excel:mac 2011 14.4.7
    Posts
    6

    Re: Searching for text strings in one cell, returning values from another

    no, unfortunately our corporate culture is "no division can understand what the other does, under any circumstances" so that will never happen as much as I would love to... I figure there is some way to say hey excell look for text='widget 1' and return the value from the column in that row for 'number on hand'

    before I started this project there were 5 workbooks for inventory, and we did 5 inventories each month...

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Searching for text strings in one cell, returning values from another

    There is, but it is SO manual. I'm away from my PC now. But if you put "WidgetXX" including the "s, after Match( replacing everything up to but excluding the first comma thereafter : it should work.

    If not - shout. Il be back tomorrow am.

  12. #12
    Registered User
    Join Date
    01-19-2015
    Location
    Dallas Tx
    MS-Off Ver
    Excel:mac 2011 14.4.7
    Posts
    6

    Re: Searching for text strings in one cell, returning values from another

    i don't see the formula glenn, is it an attachment i'm missing?

    Thanks

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Searching for text strings in one cell, returning values from another

    Dohh. There was meant to be an attachment at Post 5. See report B, any of the pale green cells. This is the normal way of doing this. In your case, you may need to use the approach in the pink cell. To be honest, my earlier suggestion of corporate floggings would be preferable!!
    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. Replies: 7
    Last Post: 12-18-2013, 06:34 AM
  2. Help searching an array of text strings for common strings
    By ABComp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-23-2012, 11:19 PM
  3. Replies: 3
    Last Post: 08-02-2010, 10:07 AM
  4. Searching a cell for mulitiple strings and returning a value
    By rizzay in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-17-2008, 03:40 AM
  5. Searching one value and returning multiple values in one cell
    By Ray789 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-27-2008, 04:31 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