+ Reply to Thread
Results 1 to 10 of 10

pull text from 2 columns based on finding text in other columns

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    pull text from 2 columns based on finding text in other columns

    Hi all
    I need a formula that can scan down column "M" and column "N", if it finds a "no"
    return the delivery number in column "B" and vendor in column "c"
    to a new table/worksheet where I can graph the results.
    best regards
    Jim

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: pull text from 2 columns based on finding text in other columns

    Hi and welcome to the forum

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that. That way we can see your layout etc
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: pull text from 2 columns based on finding text in other columns

    Hi and thanks for the response
    here is an example of what I hope to achieve
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: pull text from 2 columns based on finding text in other columns

    take a look at the attached. I added a helper column to sheet1 column P and copied this down...
    =IF(OR(M4="no",N4="no"),P3+1,P3)
    and then referenced the values in that column to return te values you wanted...
    =IFERROR(INDEX(sheet1!$A:$O,MATCH(ROW(A1),sheet1!$P:$P,0),MATCH(C$6,sheet1!$A$3:$O$3,0)),"")

    Please note though, that for the index/match to work, the headings MUST be identical
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: pull text from 2 columns based on finding text in other columns

    Hi thanks,
    did you attach the correct example ?
    I'm not following

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: pull text from 2 columns based on finding text in other columns

    LOL sorry, apparently not. Thats what happens when you get a couple of "example" files from different members. Try this 1 instead
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: pull text from 2 columns based on finding text in other columns

    Hi, thanks again
    it will take me a bit of time to go through that and understand it, however I note their are no "counts" in columns e and f of sheet 2?

  8. #8
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: pull text from 2 columns based on finding text in other columns

    forget my last, have realised what you said about titles being the same and this has rectified it
    thanks.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: pull text from 2 columns based on finding text in other columns

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

  10. #10
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: pull text from 2 columns based on finding text in other columns

    Thanks again,
    how can I get it to total the number of "no" by each vendor ?

    regards
    Jim
    ps seemingly I cant add to your reputation until I spread it around.

+ 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. mode of text columns based on another text column
    By HEIDYS7 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2013, 04:38 PM
  2. Replies: 11
    Last Post: 01-02-2013, 10:14 AM
  3. [SOLVED] Conditional formating based on text in 2 columns (but only partial text!)
    By Icehockey44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2012, 06:26 AM
  4. Replies: 3
    Last Post: 12-20-2007, 03:50 PM
  5. Finding text across three columns
    By kball in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 09-18-2006, 09:12 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