+ Reply to Thread
Results 1 to 4 of 4

limit my number to 2 decimal places

  1. #1
    Registered User
    Join Date
    12-03-2007
    Posts
    8

    limit my number to 2 decimal places

    Guys,

    I have the following in a cell on a worksheet

    =IF(Data!B25=1,"A single invoice of £"&Data!B27&" will be raised on",""&Data!B25&" equal invoices of £"&Data!B27&" will be raised starting ")

    where 'data!b27' cell has been formatted to show a currency value to 2 decimal places.

    However, the above formula displays the value to 4 decimal places, can it be changed to show only 2 decimal places ?


  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Try

    =IF(Data!B25=1,"A single invoice of £"&TEXT(Data!B27,0.00)&" will be raised on",""&Data!B25&" ")
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    something like
    =IF(A1=1,"how about it " &TEXT(B1,"$0.00")&" or else ","")

  4. #4
    Registered User
    Join Date
    12-03-2007
    Posts
    8
    Guys,

    Thanks a lot .........it worked 1st time



+ 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