+ Reply to Thread
Results 1 to 2 of 2

Thread: How to place alternate text, depending a field value.

  1. #1
    Registered User
    Join Date
    01-27-2012
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2003
    Posts
    1

    How to place alternate text, depending a field value.

    I have two alternate sentences, that I wish to place in a given field depending on the value of a different given field.

    Example: F1 has the value of 1 or 2.

    C1 has text "this is option 1"

    C2 has text "this is option 2"

    A8 is the target field, desired to have contents of C1 placed in it if F1 has the value of 1, if not, then A8 is to have contents of C2 placed in it.

    What coding would be placed in A8 to make this happen. Microsoft Excel 2007.

    Thanks

    Larry

    *

  2. #2
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,453

    Re: How to place alternate text, depending a field value.

    Hello Larry, welcome to the forum.

    There are numerous way to do it. One way is use IF, like

    =IF(F1=1,C1,C2)

    Or CHOOSE

    =CHOOSE(F1,C1,C2)
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

+ 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.2.0