+ Reply to Thread
Results 1 to 4 of 4

If text & value formulas

  1. #1
    Registered User
    Join Date
    12-14-2010
    Location
    London , England
    MS-Off Ver
    Excel 2007
    Posts
    40

    If text & value formulas

    Hello,

    I have 1 column (column C) displaying values and text. When it is displaying values, depending on the currency in column B, I have used a IF formula to translate the value in Column E in the Euro currency. The below formula works fine for values.

    =IF($B6="GBP",C6*1.2,IF($B6="USD",C6*0.7,IF($B6="EUR",C6*1,0)))

    However, column C also sometimes display text ("N/A" or "Inclusive"). If the cell in column C displays value, then the above formula should apply, but if it's text, then the same text should be displayed in E.

    I don't know what formula to use as the text is changing.
    I have attached a sample spreadsheet.

    Many thanks
    Attached Files Attached Files
    Last edited by Sophster; 04-14-2011 at 11:18 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: If text & value formulas

    An an initial IF statement to check to see if col C is text like this

    =IF(ISTEXT(C5),C5,IF($B5="GBP",C5*1.2,IF($B5="USD",C5*0.7,IF($B5="EUR",C5*1,0))))

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    05-27-2008
    Location
    Newcastle Upon Tyne UK
    MS-Off Ver
    XP Excel 2003
    Posts
    105

    Re: If text & value formulas

    We crossed ChemistB

    Try this in E5 and drag down

    =IF(ISTEXT(C5), C5, IF($B5="GBP",C5*1.2,IF($B5="USD",C5*0.7,IF($B5="EUR",C5*1,0))))

    works in Excel 2007

    edvwvw

  4. #4
    Registered User
    Join Date
    12-14-2010
    Location
    London , England
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: If text & value formulas

    This is working perfectly!!

    Thank you both 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