+ Reply to Thread
Results 1 to 13 of 13

Match Name and Age and return Yes/No

  1. #1
    Registered User
    Join Date
    04-23-2019
    Location
    Philippines
    MS-Off Ver
    2021
    Posts
    17

    Cool Match Name and Age and return Yes/No

    Hi I am sort of a newbie when it comes to Excel formulas. Easily confused with which formula to use when....
    So Im really hoping to get some help here Thank you so much in advance.

    Here is the excel problem:

    I want to compare the names columns if there are matches. Afterwards, compare if the corresponding ages are same. If both are satisfied, then it returns "Y".
    Otherwise, if there are no name matches, or if names match but ages don't, then it returns "N". How do I do this? I have attached screenshot. (Cant seem to attach the file itself. Thank you so much!

    excel problem.png

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,412

    Re: How to solve this Excel dilemma (beginner)

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I shall attempt to do tit for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,412

    Re: Match Name and Age and return Yes/No

    I see you changed it yourself - well done!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,412

    Re: Match Name and Age and return Yes/No

    Will you please attach a sample Excel workbook?

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  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: Match Name and Age and return Yes/No

    I have renamed this for you, ON THIS OCCASION, since you are a beginner here. We want MEANINGFUL titles.... not "I have a probem" type of title (we all have problems...).

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? However, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever). Please don't attach a picture of an Excel sheet (no-one will want to re-type all your stuff before starting).

    1. It does NOT have to be your real sheet - mock up a SAMPLE if you need to. But not 1000's of rows!!! It makes manual checking so tedious. Whatever you do... make sure that all confidential information is removed first!!

    2. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    3. Make sure that your desired solution is also shown (mock up the results manually).

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Match Name and Age and return Yes/No

    You could use VLOOKUP. If the VLOOKUP fails, then the name doesn't match. If it does match, you can return the value that goes with the name and compare it.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  7. #7
    Registered User
    Join Date
    04-23-2019
    Location
    Philippines
    MS-Off Ver
    2021
    Posts
    17

    Re: Match Name and Age and return Yes/No

    Thank you so much for your replies.

    Apologies for the very generic thread title. Thank you for amending the title. Will note to indicate specific issue going forward.

    I have attached the excel sheet for your reference. Column C is the result that I wish to generate with Excel formula..

    (Checking if B value exists in F column, and if so, does the value match? If they match, it returns "Yes". If B is not found in F, or if values don't match, then "No" is returned.)

    Thank you so much in advance!
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: Match Name and Age and return Yes/No

    Try this in C5:

    =IF(ISNUMBER(MATCH(A5&"|"&B5,INDEX($E$5:$E$31&"|"&$F$5:$F$31,0),0)),"Yes","No")

  9. #9
    Registered User
    Join Date
    04-23-2019
    Location
    Philippines
    MS-Off Ver
    2021
    Posts
    17

    Re: Match Name and Age and return Yes/No

    Thank you so much sir/mam !!! Have a great day ahead!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,412

    Re: Match Name and Age and return Yes/No

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

  11. #11
    Registered User
    Join Date
    04-23-2019
    Location
    Philippines
    MS-Off Ver
    2021
    Posts
    17

    Re: Match Name and Age and return Yes/No

    Hi, I am unable to find the "Solved" option under Thread Tools?

    Thank you.

    thread.png

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,458

    Re: Match Name and Age and return Yes/No

    Same results:

    Please Login or Register  to view this content.
    Quang PT

  13. #13
    Registered User
    Join Date
    04-23-2019
    Location
    Philippines
    MS-Off Ver
    2021
    Posts
    17

    Re: Match Name and Age and return Yes/No

    Thank you so much!

+ 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. Excel beginner.
    By TDavis148 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-11-2018, 02:52 PM
  2. How to create a simple Household Budget in Excel
    By bennana in forum Excel General
    Replies: 2
    Last Post: 04-06-2016, 01:58 PM
  3. [SOLVED] Excel Client Scheduler Dilemma
    By cccote in forum Excel General
    Replies: 1
    Last Post: 03-22-2014, 11:57 AM
  4. Excell beginner trying to solve my production issue
    By onatop in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 03-04-2014, 11:33 PM
  5. beginner in excel VBA
    By joegor in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-28-2014, 09:44 AM
  6. [SOLVED] Circumvent the Fill Series dilemma on Filtered Data Excel 2013
    By haalx790 in forum Excel General
    Replies: 6
    Last Post: 01-02-2014, 02:11 PM
  7. Login Design Dilemma in Excel
    By LordMarcus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2009, 02:39 AM

Tags for this Thread

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