+ Reply to Thread
Results 1 to 5 of 5

Trying to use formula IF specific text, then display text from specific cell

  1. #1
    Registered User
    Join Date
    02-17-2021
    Location
    USA
    MS-Off Ver
    2017
    Posts
    3

    Trying to use formula IF specific text, then display text from specific cell

    Hi there!

    I was hoping someone could help me figure out if excel is able to do this,

    I'm trying to do a formula that does the following:

    IF cell "C2" contains "Formal" return contents of the cell "=G212"
    IF cell "C2" contains "Informal" return contents of the cell "=G216"

    When I use if functions, the cell does not return anything or gives me a ?Name reject.

    I've tried:

    =IF(C2=Informal,"=Calculation!G212",IF(C2=Formal,"=Calculation!G216",0))

    =IF(C2=Informal,"=Calculation!G212",0)) to see if it would work with just one function and it only dislayed 0

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Trying to use formula IF specific text, then display text from specific cell

    Hi & welcome to the board.
    You have the quotes in the wrong place, it should be
    =IF(C2="Informal",Calculation!G212,IF(C2="Formal",Calculation!G216,0))

    Note your formula & description don't agree.

  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
    44,023

    Re: Trying to use formula IF specific text, then display text from specific cell

    =IF(C2="","",IF(C2="Informal",Calculation!G212,Calculation!G216)))

    maybe...
    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
    02-17-2021
    Location
    USA
    MS-Off Ver
    2017
    Posts
    3

    Re: Trying to use formula IF specific text, then display text from specific cell

    Thank you so much! That worked perfectly!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Trying to use formula IF specific text, then display text from specific cell

    Glad to help & thanks for the feedback.

+ 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. Replies: 5
    Last Post: 10-26-2018, 11:36 PM
  2. Replies: 5
    Last Post: 04-09-2014, 10:36 PM
  3. Replies: 2
    Last Post: 08-05-2013, 07:32 PM
  4. Display msgbox when specific text entered in specific range
    By Ali_Riza in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2012, 08:05 AM
  5. [SOLVED] Formula with specific text that inserts value from BESIDE cell with specific text.
    By jtmann in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-13-2012, 09:24 AM
  6. Replies: 1
    Last Post: 06-22-2012, 02:18 PM
  7. Replies: 3
    Last Post: 06-20-2012, 07:16 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