+ Reply to Thread
Results 1 to 5 of 5

If cell equals this and this cell contains this, return this

  1. #1
    Forum Contributor
    Join Date
    12-18-2012
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    158

    If cell equals this and this cell contains this, return this

    Hi,

    In the examplefile under Presentation I want to achieve the following.

    In A4 I want a formula that checks IF Cell C4 in the Calc Sheet Equals the text I have written in B2 in Presentation Sheet and check if the cell E4 in the calc sheet has a 1 in it. IF both are true, I want the returned value to be the text writtein in A4 in the calc sheet. and if they are false, write a "NO".

    I hope this makes sense. Thank you in advance!
    Attached Files Attached Files

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

    Re: If cell equals this and this cell contains this, return this

    You can use this formula in cell A4 of the Presentation sheet:

    =IF(AND(B2=Calc!C4,Calc!E4=1),Calc!A4,"NO")

    Hope this helps.

    Pete

    EDIT: As you are in Sweden, you may need to use semicolons ( ; ) in the formula rather than commas ( , ), depending on your regional settings.

    Pete

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,568

    Re: If cell equals this and this cell contains this, return this

    Perhaps
    =IF(AND(B2=Calc!C4,Calc!E4=1),Calc!A4,"NO")

  4. #4
    Forum Contributor
    Join Date
    12-18-2012
    Location
    Sweden
    MS-Off Ver
    Office 2016
    Posts
    158

    Re: If cell equals this and this cell contains this, return this

    And that does exactly what I wanted, thank you for the quick replies! Marking as Solved, giving rep, thank you!

  5. #5
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: If cell equals this and this cell contains this, return this

    Why did you post to the VBA section f you wanted a formula?
    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.

+ 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 another cell if one cell equals another with formula
    By Excl3454 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-06-2021, 03:30 PM
  3. [SOLVED] if cell equals value then return answer
    By swfarm in forum Excel General
    Replies: 4
    Last Post: 07-02-2018, 06:56 AM
  4. [SOLVED] Return entire row if cell equals
    By Moedeb27 in forum Excel General
    Replies: 5
    Last Post: 08-03-2016, 07:28 PM
  5. [SOLVED] if a cell value in a range equals another cell, then return a value left of a cell
    By pasqualebaldi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-07-2015, 02:29 PM
  6. [SOLVED] IF 1 cell equals a range of others, return this cell
    By PDBartlett in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-06-2014, 07:38 AM
  7. if cell equals value then return previous cell address
    By gammaman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2014, 11:03 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