+ Reply to Thread
Results 1 to 7 of 7

How to check value on Sheet2 and get in Sheet1

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    albania
    MS-Off Ver
    2013
    Posts
    9

    How to check value on Sheet2 and get in Sheet1

    Hello friends,

    I'm looking for formula to get values from a range in Sheet2 based on text of a cell.

    For ex.

    in Sheet1, I want to check if the text of A2 exist on text that is from B1:GD1 in Sheet2, and if the text is in T1, then get value of T17 in my cell in Sheet1.

    In attachment you will find my file.

    Thanks for you support.

    FORMULA.xlsx

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: How to check value on Sheet2 and get in Sheet1

    Hi, Try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

  3. #3
    Registered User
    Join Date
    09-15-2014
    Location
    albania
    MS-Off Ver
    2013
    Posts
    9

    Re: How to check value on Sheet2 and get in Sheet1

    Quote Originally Posted by boopathiraja View Post
    Hi, Try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I tried this but it is not working.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to check value on Sheet2 and get in Sheet1

    Hi,

    I presume the reference to column T was just an example and that you want the row 17 value for text other than 04.03.9

    In which case in say D2 on sheet1 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to check value on Sheet2 and get in Sheet1

    Hi,

    The reasons the HLOOKUPS are not working is not because it's a HLOOKUP per se, rather that you have a leading character space in your row 1 values on sheet 2 which of course needs to be included in any Lookup or Match function.

    Alternatively of course remove the leading space characters.

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

    Re: How to check value on Sheet2 and get in Sheet1

    You have a lot of leading spaces in row 1 of Sheet2, so it is difficult to find exact matches. You can try this:

    =IFERROR(INDEX(Sheet2!$17:$17,MATCH("*"&A2,Sheet2!$1:$1,0)),"")

    where the asterisk is the wildcard character meaning to include anything at the beginning, but this may give you unexpected results.

    Hope this helps.

    Pete

  7. #7
    Forum Contributor
    Join Date
    01-21-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    227

    Re: How to check value on Sheet2 and get in Sheet1

    Quote Originally Posted by malabond View Post
    Hello friends,

    I'm looking for formula to get values from a range in Sheet2 based on text of a cell.

    For ex.

    in Sheet1, I want to check if the text of A2 exist on text that is from B1:GD1 in Sheet2, and if the text is in T1, then get value of T17 in my cell in Sheet1.

    In attachment you will find my file.

    Thanks for you support.

    Attachment 352980
    Edited:- Meant to post on a diff thread, apologies.
    If I've been of help, plz add reputation.

+ 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] copy data from sheet1 to sheet2 based on column (A) sheet1 and column (C) sheet2
    By AWITCHER in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-13-2014, 03:20 PM
  2. Replies: 3
    Last Post: 10-09-2013, 02:29 PM
  3. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  4. Replies: 3
    Last Post: 06-06-2012, 05:36 AM
  5. How to Check Empty Rows in Sheet2 when sheet1 buton clicked
    By bernardng in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2006, 07:10 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