![]() |
|
#1
|
||||
|
||||
![]() Quote:
Quote:
Even "5" + "1000" (note the quote marks) is nonsense; the values 5 and 1000 can be added, but the characters "5" and "1000" cannot. Excel is willing to evaluate ="5"+"1000" and return 1005, but it does it by checking the character strings, noticing that they can be converted meaningfully into numbers and doing so before doing the addition. Try saying ="5"+"1xxx"; when Excel sees the plus sign it'll try to convert both strings into numbers, but when "1xxx" cannot be converted it'll end with the #VALUE! error. That's what I get when I try ="5 *"+1000, too. Now, I gather you're creating formulae that generate numeric values, and then adding a space-and-asterisk combination to the end. Excel does the same thing there only in the opposite direction; it converts the numeric result to a string, and then concatenates " *" at the end. After that, the contents of that cell are a character string, and you can't add anything to "5 *" any more than you can to "Mark" or "1xxx". So the short answer is "sure, you can add an asterisk to the end of a non-formula value. But you can't use it for arithmetic afterward". The longer answer is "...unless you first strip off the asterisk". For instance, if you know that A1 has "1005 *" in it, then in B1 it would be pointless to say =A1*3. But you could take away the asterisk and then multiply: Code:
=LEFT(A1,LEN(A1)-2)*3 That works great if you already know there's a space-asterisk at the end of the value. If there might or might not be, it doesn't help (because if there isn't, it'll convert 1005 into 10 before doing the arithmetic). And for all I know you might also have space-asterisk-asterisk out there, too. Even that can be got around, but it gets to be more and more trouble and eventually you will (I predict) decide that it's too much trouble. But we can still talk, if you want to look into the complications. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Match two sets of data and display specific data | lolly150 | Excel | 1 | 05-14-2012 10:33 PM |
Move data from 1 cell to another cell | Catalin.B | Excel | 1 | 06-25-2011 12:51 PM |
![]() |
Jacob91 | Word Tables | 2 | 05-01-2011 09:42 PM |
Word 2010 - Cell hover display question | Jacob91 | Word | 0 | 09-02-2010 09:18 AM |
Trying to merge label data from file | ClayShannon | Mail Merge | 0 | 09-16-2009 10:08 PM |