+ Reply to Thread
Results 1 to 4 of 4

Editing an IF statement to include a value as a currency

  1. #1
    Registered User
    Join Date
    08-25-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    37

    Editing an IF statement to include a value as a currency

    Hi All,

    Im currently doing a project, and I have this if statement which gives me what I need in order to produce my graphs.

    Here is the formula that I am using: =IF(All!$D$5="Paint Grade Qty",Data!B9,IF(All!$D$5="Painting Grade Val",Data!C9)) ---------> (Where $D$5 is a data validtion drop down box to select which option to choose and B9 & C9 are the qty and val data)

    When the user clicks on the drop down box and selects painting grade Vol, the data along with the graph will change to vol and if the user selects painting grade Qty, then all the data and graph will change to the qty, however, on the graphs, I have a primary and secondary axis, but I would like the secondary axis to display the currency rather than just numbers, would I need to alter the formula in a way such that the data would display as currency, if so how would I alter the if statement?

    If I changed the format of the data it would mean that the qty would then show as currency not only in the data but in the graphs as well.

    Any help would be appreciated, hope its not too confusing?

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Editing an IF statement to include a value as a currency

    cant you just right click the axis and then format the axis to currency?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    08-25-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Editing an IF statement to include a value as a currency

    Ahhh, you see, I came to the right place, it seems that I am over complicating things that can be done if I go back to basics.

    Thanks very much!

  4. #4
    Registered User
    Join Date
    08-25-2012
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    37

    Re: Editing an IF statement to include a value as a currency

    Ahhh, you see, I came to the right place, it seems that I am over complicating things that can be done if I go back to basics.

    Thanks very much!

+ 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