I am trying to figure out a way to write a function in Excel for the following scenario:
I have a row of nine single digit numbers from 0 to 9. Each number is in its own cell. Each number is multipled by either 1 or 2, so the largest two digit number would be 18.
That said, you might have a 6 in one cell and 16 in another. If you have a 6 in the cell, then its sum will show as 6. However, if you have 16 in the cell, the sum needs to be 1 + 6 = 7.
How would I write a formula for the cell containing 16 that I can just drag across for my spreadsheet?
Thanks!
Bookmarks