+ Reply to Thread
Results 1 to 7 of 7

Formula Help

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    24

    Formula Help

    Hi,

    I need help in this formula

    In column A, I have name of the individuals. In column H i have a list of names [H1:H50].
    In column B i need to insert a formula which looks the value corresponding in column A, should search the value in the range of cells of column H [H1:H50] and if present should copy the corresponding name of column A to the cell in column B

    Please help.

    Thanks in advance.

    Below is the example

    Col A Col B Col H
    Mary =Formula X
    Bob Bob [Result of formula] Y
    Sam Z
    Peter Bob
    David V
    Samuel
    A
    B
    C
    D
    E
    F

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

    Re: Formula Help

    Your example isn't much help, but from your description I think you need a formula like this in B2:

    =IF(ISNA(MATCH(A2,H$1:H$50,0)),"",A2)

    then copy it down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-04-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    24

    Re: Formula Help

    Hi Pete,

    Thank you for the formula. But I am actually facing difficulty while trying to combine the formula with another.

    Let me explain you the actual requirement so that you can help me in correcting where i am going wrong.


    I have column A as Group, column B as names of individual, column C would need the formula.

    If group in column A is equal to "GM" or "Support" and value in column B is within the range of values in column H [H1:H50], then copy the corresponding value in column B to column C.

    This is the formula I am using which is not giving the required result

    =IF(AND(OR(A2="GM",A2="Support"),ISNA(MATCH(B2,H1:H50,0))),B2, "")

    Thanks

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula Help

    Give this a try:
    =IF(AND(OR(A2={"GM","Support"}),ISNUMBER(MATCH(B2,$H$1:$H$50,0))),B2,"")
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Formula Help

    Welcome to the forum, narikisas

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Registered User
    Join Date
    01-04-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    24

    Re: Formula Help

    Thank you tigeravatar It worked

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Formula Help

    Narikisas
    Your post does not comply with Rule 7 of our Forum RULES. Please do not ignore Moderators' or Administrators' requests - note that this includes requests by senior members as well, if you are unclear about their request or instruction then send a private message to them asking for help. Do not post a reply to a thread where a moderator has requested an action that has not been complied with e.g Title change or Code tags...etc
    Last edited by royUK; 01-04-2012 at 03:06 PM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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