+ Reply to Thread
Results 1 to 4 of 4

If then statement for only the last digit of changing dollar amounts

  1. #1
    Registered User
    Join Date
    09-26-2014
    Location
    Boston
    MS-Off Ver
    2010
    Posts
    63

    If then statement for only the last digit of changing dollar amounts

    I want to make an if then statement that will only have an effect on the last digit of a dollar amount (the cents) so in $7.95 it would be the 5 that I need to change. I need and final digit to turn into a 9. The example from before would have to look like $7.99 after I plug in the statement. I created an if then statement which would technically work and I attached, but I don't know how to properly represent the monetary value that I'm not trying to change and the formula is really bulky. Would love to know how to represent the changing dollar and cent amounts properly and some tips on how to make the formula look better. Thanks so much!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,824

    Re: If then statement for only the last digit of changing dollar amounts

    try ..

    =ROUNDUP(A1,1)-0.01

  3. #3
    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
    53,048

    Re: If then statement for only the last digit of changing dollar amounts

    If you are always ONLY dealing with 2 decimal places (as per your sample), perhaps this...
    =LEFT(A1,LEN(A1)-1)+0.05
    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

  4. #4
    Registered User
    Join Date
    09-26-2014
    Location
    Boston
    MS-Off Ver
    2010
    Posts
    63

    Re: If then statement for only the last digit of changing dollar amounts

    wow I'm and idiot. Thanks.

+ 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. Turning even Dollar Amounts to odd Dollar Amounts
    By Tim D in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-13-2015, 04:32 PM
  2. dollar amounts
    By atcspaul in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2012, 10:06 PM
  3. Replies: 4
    Last Post: 09-14-2011, 06:23 PM
  4. Adding Up Dollar Amounts?
    By NeighborMike in forum Excel General
    Replies: 1
    Last Post: 08-11-2009, 01:17 PM
  5. text to = dollar amounts
    By Kelly333 in forum Excel General
    Replies: 4
    Last Post: 11-06-2007, 04:48 PM
  6. [SOLVED] dollar amounts
    By acsnett in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-22-2005, 02:05 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