+ Reply to Thread
Results 1 to 5 of 5

Formula to search for exact match and to return specific value in a another cell?

  1. #1
    Registered User
    Join Date
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Smile Formula to search for exact match and to return specific value in a another cell?

    Hello,

    I have a column "A" (random numbers only) which is representing the sales done.

    I have another column "H" , which I will fill manually only with "1" or "0".

    I want a formula, which is going to search all the "1" in the column H and if it finds a match to take the same value from the column "A" and to put it in a column "D".

    For example I have cells H2, H4 and H7 filled will "1" only, all the rest is "0"
    In that case I should have cells D2, D4 and D7 filled only, with the same values as in cells A2, A4 and A7.

    Attaching the picture of how it should look like.

    example.jpg


    Any ideas on how to do that?
    Last edited by Air^Canada; 10-23-2018 at 08:03 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,859

    Re: Formula to search for exact match and to return specific value in a another cell?

    place this in D2 =if(H2=1, A2,"") and copy down
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    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
    43,984

    Re: Formula to search for exact match and to return specific value in a another cell?

    Try this:

    =IF(H2=1,A2,"")

    if you are using Bulgarian regional settings:

    =IF(H2=1;A2;"")
    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

  4. #4
    Registered User
    Join Date
    06-04-2012
    Location
    Bulgaria
    MS-Off Ver
    Excel 365 & Excel 2016
    Posts
    36

    Re: Formula to search for exact match and to return specific value in a another cell?

    Thank you both, works like a charm!

  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
    43,984

    Re: Formula to search for exact match and to return specific value in a another cell?

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. Return search item/s from array or list in a cell (exact match)
    By adm.patrikbpl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2017, 09:22 AM
  2. [SOLVED] Needing to search for an exact match on a sheet within a formula (COUNTIF help)
    By shanesutro in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-22-2017, 02:37 AM
  3. Replies: 11
    Last Post: 12-21-2016, 02:29 PM
  4. [SOLVED] Match Exact formula and Search list with results
    By newbie4 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2015, 08:20 PM
  5. Formula to match a cell with value in a column and return a specific value
    By code_excel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2014, 12:50 AM
  6. [SOLVED] Formula to search a column for a specific value, and return the value in the next cell
    By TimothyD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2013, 12:02 AM
  7. Replies: 11
    Last Post: 11-30-2012, 08:04 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