+ Reply to Thread
Results 1 to 4 of 4

Trouble with If Statement

  1. #1
    Registered User
    Join Date
    09-03-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    3

    Trouble with If Statement

    I am sure this is easy, but I cannot get my head around it this afternoon.

    What I want the formula to say is:

    If Q3=A, then use the text in C3. If Q3=B, then use the text in E5.

    Any help would be appreciated. Thanks in advance.
    Last edited by kirkjharris; 12-20-2013 at 06:30 PM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Trouble with If Statement

    Hi kirk,

    Maybe something like the below?

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,795

    Re: Trouble with If Statement

    TRY

    =IF ( Q3="A", C3, IF(Q3= "B", E5, "what to do if Q3 does not equal A or B" ) )
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    09-03-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Trouble with If Statement

    Got it to work! Thanks for everyone's assistance.

+ 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. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  2. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  3. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  4. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 PM
  5. Troubel with compression of a very large Excel file
    By Thorsten Pollmeier in forum Excel General
    Replies: 2
    Last Post: 03-02-2005, 03:06 PM

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