+ Reply to Thread
Results 1 to 2 of 2

To calculate/sum all numbers that are formatted in currency?

  1. #1
    Registered User
    Join Date
    06-01-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    38

    To calculate/sum all numbers that are formatted in currency?

    In a range of A1 : E20.

    There are numbers , text and numbers(that are formatted in currency eg. "$")

    How do I filter out the numbers that are formatted in currency format and sum them all up with one line of code?
    Last edited by Dwexdwex; 06-11-2013 at 11:22 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,926

    Re: To calculate/sum all numbers that are formatted in currency?

    currency is just a format, and excel doesnt "see" formats - they are applied as a visual aid to help the human eye see things better. So excel cannot tell the difference between 20.55 and $20.55 (except maybe though VBA) - unless the $20.55 is actually text and not a value.

    perhaps if you know of some way toID that "these" numbers are money, and "those" are just values, we can come up with something for you.

    Could you upload a sample workbook (no sensitive date)? Please show what you have, what you want, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

+ 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