+ Reply to Thread
Results 1 to 34 of 34

Simple minus formula not working

  1. #1
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Red face Simple minus formula not working

    Hi everyone. Hope your are well. I need some help with a excel formula. Just a smple cell - cell and answer displayed in another cell. So =A1-A2 answer in A3. My problem is the number in the two cells ( A1 and A 2 ) are as follow 3,037.660 For some reason if the number has a" , "and a " . " in the the formula give me a error #VALUE!. Any sugestions ?

    Thank you
    Bet the answer will be something obvious !!!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Simple minus formula not working

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Simple minus formula not working

    Cell format may be text, to be changed to number format.

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Simple minus formula not working

    Instead of A1 - a2.. try to use..

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    There is nothing wrong with the number 3,037.660. I suspect that it was entered as a text. But it would be helpful if you could attach a spreadsheet with the data in it so we could find a solution to your problem.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Hi Thanks for the replies. Here is the cheet.
    Line 1 is the error line. I use the = Value(A1)-Value(A2) but does not work
    Line 2 is was I would like
    Line 4 and 5 just another example. Here use the formula I am using now.

    Thanks
    PS: I do not enter the number manually. I high light them on a webpage and drag them on to a cell.
    Attached Files Attached Files
    Last edited by kakhuis; 08-05-2013 at 08:57 AM.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    Just like I said. The numbers were entered as text. You can use Debraj Roy advice to get the right answer.

  8. #8
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Simple minus formula not working

    Try this..

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Hi. Tried it, but no luck.

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    =VALUE(D10-C10) this one worked fine for me.

  11. #11
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Hi Alkey. Tried it, but does not work for me. Did you download my cheet and tried it on there ?

  12. #12
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Simple minus formula not working

    If all data in column C and D is in the textformat - Use Search and replace

    First replace the character "," with nothing
    Then replace the character "." with ","

  13. #13
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    Yes, I did and it worked fine.

  14. #14
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    ALKey. Would min change it on the cheet and then uploading it ?

    Thanks

  15. #15
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    Here is the file.
    Last edited by AlKey; 08-05-2013 at 09:32 AM.

  16. #16
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    I think i sent a wrong file. Sorry.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    ALKey I think you uploaded the wring file. In the cheet there is info on Code,Name, Age and so on

  18. #18
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    Look at the second file Example-New.xlsx

  19. #19
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Simple minus formula not working

    TWIMC
    =a1-a2 is the same as value(a1)-value(a2) The use of arithmetic operators automatically coerces text to numbers. The use of the VALUE function is therefore redundant

    In this case it's only a regional settings problem

  20. #20
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    AlKey Did you enter the number manually ?

  21. #21
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    No. I just used the formula that I have suggested earlier.

  22. #22
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Using the search and replace:

    15,711.80 is the number. I find it and replace the "," with nothing. So the new number is 15711.80 Even now it still give the value error. AGRRRRRRRR

  23. #23
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    AlKey . I opened your file and copied your formulaa to my sheet and still the same error

  24. #24
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    As soon as I retipe the number, so basically I am manually entering them then it works

  25. #25
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Basically if I highlight a number like this: 1.78656 and then drag it on to a cell it appears like this: 178.656. Notice the . has move ! Anyway it work with the formula. But when I drag and drop a number the contains a , and a , then the formula does not work unless I re enter the number manually. Even if I use ctrl F and replace/take away one of the two symbols, still the same result.

  26. #26
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Simple minus formula not working

    I am not sure what else to offer. But try this method to convert text to numbers.

    In any blank cell, type the value 1.
    Make sure the cell you typed 1 in is formatted as a number.
    Select the cell in which you typed 1, and then right click and choose Copy.
    Select the cells with the values that you want to convert to numbers.
    Right click and choose Paste Special.
    Under Operation, click Multiply and then click OK.

  27. #27
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    No did not work. Thanks for the help anyway.

  28. #28
    Registered User
    Join Date
    02-18-2004
    MS-Off Ver
    2010
    Posts
    20

    Re: Simple minus formula not working

    Multiply your columns by 1 and convert to a number, should work fine.

  29. #29
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Hi JMax would you mind giving a few steps

  30. #30
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Simple minus formula not working

    Italy.. Eu Country .. hhhhmmmmm...
    Can you please open your excel..

    Open VBA (Alt + F11)
    Open Immediate Winodw.. Press Ctrl +G
    Write below line.. just copy & paste..
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and give us the output..

    1>
    .
    ,



    or

    2>

    ,
    .


    PS: Office verison "mantova".. then you location may be.. MACExcel..

  31. #31
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Hi Debraj Roy.

    I get this:
    .
    ,

  32. #32
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Hi debraj Roy

    I get this:
    ? application.ThousandsSeparator & chr(10) & Application.DecimalSeparator
    .
    ,

  33. #33
    Registered User
    Join Date
    02-18-2004
    MS-Off Ver
    2010
    Posts
    20

    Re: Simple minus formula not working

    Quote Originally Posted by kakhuis View Post
    Hi JMax would you mind giving a few steps
    Not sure if I am looking at this too simply but it worked when I downloaded your first attachment.

    Enter a "1" in an empty cell.
    Copy
    Paste Special (Multiply Value) to your two columns

    Converts your text to #'s....

  34. #34
    Registered User
    Join Date
    03-01-2011
    Location
    Italy
    MS-Off Ver
    Mantova
    Posts
    31

    Re: Simple minus formula not working

    Hi have this

    C13 = 17.507.90 $ D13 = 17.503.20 then in F13 = =D13-C13 That comes out as #VALUE!

    I then enter 1 in a empty cell. Copy it. Select C13 and D13, right click and select special past. Then I click Multiply and then done.
    But nothing happens.
    What am I doing wrong ?

+ 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. Simple array formula not working
    By alecabral in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2007, 11:59 AM
  2. [SOLVED] Simple formula NOT working :(
    By Danny Lewis in forum Excel General
    Replies: 3
    Last Post: 08-01-2006, 05:40 AM
  3. [SOLVED] simple formula not working
    By Charles Shapiro in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-10-2006, 03:29 AM
  4. Simple Minus
    By hoganc in forum Excel General
    Replies: 2
    Last Post: 02-01-2005, 09:29 AM
  5. Simple Formula not working?
    By GETGO in forum Excel General
    Replies: 2
    Last Post: 01-06-2005, 08:50 AM

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