+ Reply to Thread
Results 1 to 5 of 5

if cell equals value then return answer

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    if cell equals value then return answer

    hi guys

    im trying to get an answer returned in a cell based on what is selected in D1

    if d1 = sai then return answer from P77
    if d1 = saiwro then return answer from P77
    if d1 = saod then return the answer from P62
    if d1 = socc then return the answer from P62
    if d1 = so then return the answer from P62

    Thanks in advance

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: if cell equals value then return answer

    Hi, Do you want to return the answer to D1?
    Could you please post with sample excel?
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: if cell equals value then return answer

    Assuming you want something like a 'blank' if D1 isn't any of those, you can use this:

    =if(OR(d1={"sai","saiwro"}),P77,IF(OR(D1={"saod","socc","so"}),P62,""))

  4. #4
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: if cell equals value then return answer

    Thank you rorya much appreciated

  5. #5
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: if cell equals value then return answer

    Glad to help.

+ 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] If a cell in a column equals today's date return the value of another cell adjacent to it
    By DeanExcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-24-2021, 01:38 AM
  2. [SOLVED] Return entire row if cell equals
    By Moedeb27 in forum Excel General
    Replies: 5
    Last Post: 08-03-2016, 07:28 PM
  3. [SOLVED] If the answer to the formula equals 0, then add 1
    By madboy9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-12-2015, 07:27 AM
  4. return unique list if cell value equals a1
    By lamdl in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-08-2014, 04:33 PM
  5. First data in a range that equals less than zero, return another cell
    By WillGrice in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-22-2013, 01:07 PM
  6. Replies: 1
    Last Post: 04-03-2012, 11:33 AM
  7. Find first value that equals 0 or less and return the cell address
    By TheCyrusVirus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2010, 10:56 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