+ Reply to Thread
Results 1 to 3 of 3

Need help Returning Text

  1. #1
    Registered User
    Join Date
    08-01-2008
    Location
    KENTUCKY
    Posts
    32

    Need help Returning Text

    what i what to happen is if a x is in cell s5 to return the name Antique White if a x is in cell s6 then return the name Charlerton Coffee Glaze. Below is what I have but it return a #Value! can some one tell me what i'm doing wrong.

    =IF(WORKSHEET!S5="X","ANTIQUE WHITE",FALSE),IF(WORKSHEET!S6="X","CHARLERTON COFFEE GLAZE",FALSE)
    Last edited by kygwalt; 04-27-2013 at 10:57 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Need help Returning Text

    hi kygwalt. you probably need to follow the screen tip of the formulas closely. it's very useful. the IF formula asked for "logical_test", where you input:
    WORKSHEET!S5="X"
    that is correct. they then asked for a comma before [value_if_true], where you input:
    "ANTIQUE WHITE"
    again, another comma & they asked for [value_if_false]. to continue with another IF, you cannot put in a FALSE & close the bracket. that ends the screen tip if you noticed.

    you should continue with:
    =IF(WORKSHEET!S5="X","ANTIQUE WHITE",IF(WORKSHEET!S6="X","CHARLERTON COFFEE GLAZE",FALSE))

    you could also return a blank instead:
    =IF(WORKSHEET!S5="X","ANTIQUE WHITE",IF(WORKSHEET!S6="X","CHARLERTON COFFEE GLAZE",""))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    08-01-2008
    Location
    KENTUCKY
    Posts
    32

    Re: Need help Returning Text

    Thanks that works find. I did this before and could not get it to work but wend i put your in there i saw what was wrong i had the wrong page name.


    Thanks for the help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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