+ Reply to Thread
Results 1 to 3 of 3

If statement problem

  1. #1
    Registered User
    Join Date
    03-02-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    7

    If statement problem

    Hello all:

    Don't know if this is possible, but....

    I am looking to have a cell either output a number as a percentage or whole number (currency).

    that said if I create a dropdown box that has an if statement tied to it (i.e:=IF(A1="Percentage",...... or A1="Currency"....) how would I make it so that cell A3 is either percentage or currency?

    Moreover, if the user opts for either percentage or currency, am I correct by creating 3 cells to perform task (i.e A1 is data entered, A2 is if statement, A3 is conditional answer cell)?
    Last edited by beamer; 09-18-2012 at 02:36 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: If statement problem

    to the best of my knowledge, a cell cannot have to different numeric formats. perhaps consider putting the answers into 2 different cells
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: If statement problem

    beamer,

    Can you upload a small example file with some of the data you're dealing with, indicating what your A3 is a percentage of? I think we can be a little creative and come up with a solution for you. On a Champions League night and all!
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

+ 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