+ Reply to Thread
Results 1 to 4 of 4

formula to pull information based on text

  1. #1
    Forum Contributor
    Join Date
    01-14-2010
    Location
    England
    MS-Off Ver
    2013
    Posts
    110

    formula to pull information based on text

    Hi

    I have had a long break from working with Excel/formulas so hoping someone could be of assistance. I have included a test sheet as an example.

    I would like to be able to pull information from the "pasted data" tab only if the "area" from B1 on the check tab is found in column H on the pasted data tab. If it is, then to pull the information required from pasted data(A, B, G, H) shown on the check tab. Ideally I would like to pull only ageing information too so only show if more than 0 days old.

    Hope this makes sense.

    Regards
    Attached Files Attached Files

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

    Re: formula to pull information based on text

    Put this formula in cell J2 of the Pasted Data sheet:

    =IF(AND(H2=check!$B$1,'pasted data'!B2<0),MAX(J$1:J1)+1,"-")

    and copy this down as far as you like - the hyphens will help to show which rows the formula is active on.

    Then in A4 of the Check sheet you can use this formula:

    =IFERROR(INDEX('pasted data'!A:A,MATCH(ROWS($1:1),'pasted data'!$J:$J,0)),"")

    Copy this across to cells B4:C4. In cell C4 you need to amend the formula so that the C:C (equivalent to the A:A shown in red above) is changed to G:G, as that is where you want to get the data from, and then you can copy the formula from C4 into D4. Then you can copy the four formulae from A4:D4 down to fill your table, and then use the drop-down in B1 to change the area and see the displayed data change accordingly.

    Hope this helps.

    Pete

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: formula to pull information based on text

    Another one
    Please try at check!A4 drag across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: formula to pull information based on text

    if you are interested in using a helper column, then put this in cell I 2 of pasted data... =COUNTIF($H$2:H2,H2) and drag down.
    then in the check tab...
    =IFERROR(INDEX('pasted data'!A$2:A$5,MATCH(ROWS($1:1),'pasted data'!$I$2:$I$5,0),MATCH($B$1,'pasted data'!$H$2:$H$5,0)),"") and you can drag it down and right for one column, then you'll have to change it to this in col C of the check tab...
    =IFERROR(INDEX('pasted data'!G$2:G$5,MATCH(ROWS($1:1),'pasted data'!$I$2:$I$5,0),MATCH($B$1,'pasted data'!$H$2:$H$5,0)),"")
    and you can drag that into col D.
    adjust ranges to suit your needs.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. Formula to pull information based on information in different cells.
    By apmi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2014, 03:57 PM
  2. [SOLVED] SQL Statement to only pull information based on Text Box from a userform
    By welborns2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-30-2014, 12:39 PM
  3. [SOLVED] formula based on text information
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-06-2005, 08:05 PM
  4. [SOLVED] formula based on text information
    By Kathryn W in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  5. formula based on text information
    By Kathryn W in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. formula based on text information
    By Kathryn W in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] formula based on text information
    By Kathryn W in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10: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