+ Reply to Thread
Results 1 to 4 of 4

If then statement with text and cell reference

  1. #1
    Registered User
    Join Date
    10-13-2012
    Location
    Nutley,NJ
    MS-Off Ver
    Excel 2011
    Posts
    77

    If then statement with text and cell reference

    I'm trying to write an if/then statement


    =IF(A=1,"Your score was value of cell a2,"Your score was value of a3")

    How do I include the value of a specific cell into an if/then statement that also contains text?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If then statement with text and cell reference

    Maybe this...

    ="Your score was value of "&IF(A1=1,A2,A3)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-13-2012
    Location
    Nutley,NJ
    MS-Off Ver
    Excel 2011
    Posts
    77

    Re: If then statement with text and cell reference

    Worked, thank you!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If then statement with text and cell reference

    You're welcome. 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. [SOLVED] Sumifs reference criteria is text but I want to reference cell
    By bbeards2 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-06-2015, 04:04 PM
  2. Indirect Sheet reference with cell reference left function and text
    By teststrip in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2015, 10:31 AM
  3. How to reference text in specific cell in an If statement
    By Anp99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2015, 06:40 PM
  4. How to use a cell reference in a text statement
    By amartino44 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2013, 04:16 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Cell-Reference in a text-statement within an excel-worksheet
    By Hitchhiker_Nürnberg in forum Excel General
    Replies: 5
    Last Post: 02-09-2012, 09:02 AM
  7. Text Cell reference and increase the cell reference by step value
    By Supriya in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2005, 08:18 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