MrsFrankieH
Active Member
- Joined
- Mar 25, 2011
- Messages
- 323
- Office Version
- 365
- Platform
- Windows
Peter will probably have a different approach (so you should check back to see what he posts when he comes back on), but a quick fix is force your numbers to two digits (when evaluating the "left" digit) using the TEXT function. Here are Peter's formulas with that idea implemented...Hello Peter, thanks again for you help, I truly appreciate it. Peter, i would like to use numbers instead of texts (I didn't realize it would make a difference). Can I have a formula to change the formula to work with numbers instead?
.. but your examples indicate that is not the case for all circumstances. If it was, then for division, wouldn't 20 mean 10 divided by 2 = 5? In your example you gave "" as the result for 20 for division.Yes, "0"s are treated as 10 ...
Can you confirm that...for division, as long as the answer is whole, any formula will do. If there's a division where the number has a "." in it (i.e. 3.4 or something) that would show as 0
Peter will probably have a different approach (so you should check back to see what he posts when he comes back on), but a quick fix is force your numbers to two digits (when evaluating the "left" digit) using the TEXT function. Here are Peter's formulas with that idea implemented...
F3: =RIGHT(LEFT(TEXT(F1,"00"))+RIGHT(F1))+0
F4: =ABS(SUBSTITUTE(LEFT(TEXT(F1,"00")),0,10)-SUBSTITUTE(RIGHT(F1),0,10))
F5: =IF(FIND(0,TEXT(F1,"00")&0)>2,RIGHT(LEFT(TEXT(F1,"00"))*RIGHT(F1))+0,"")
F6: =IFERROR(MAX(LEFT(TEXT(F1,"00")),RIGHT(F1))/MIN(LEFT(TEXT(F1,"00")),RIGHT(F1)),"")
There are still issues that are not clear about your requirements and expected results.
1. For example, you said ..... but your examples indicate that is not the case for all circumstances. If it was, then for division, wouldn't 20 mean 10 divided by 2 = 5? In your example you gave "" as the result for 20 for division.
2. Which brings me to the question about the blank cells in your original sample results. Are they really supposed to be blank given that for multiplication say, 20 would be 2 * 10 = 20 and bringing that back to 1 digit would be 0 not blank. Can you explain further about that?
3. For division you now say ...Can you confirm that
a. 37 should result in 0 (not blank) because both 3/7 and 7/3 result in remainders
b. 63 should result in "" or 0 (which one?) because one of 3/6 and 6/3 results in a whole number? That is, we have to check two separate calculations to determine the result for division?
The first of these says use 10 instead of zero only when the numbers are single, but the second one uses 10 instead of 0 even when the number (20) consists of two digits.
- You’re right,”0”s are treated as “10” only when the numbers are single numbers (1 through 9).
- In your division example “20” would calculate to “5” (0 is 10).
Whenever that is the case, helpers cannot work without informationFor some reason I'm still getting errors.