I have a column that looks like the following and I need to add the numbers:
27 skids
31 skids
56 skids
13 skids
The unit "skids" is constant. The answer I am looking for is "127" or "127 skids"
Thank you.
I have a column that looks like the following and I need to add the numbers:
27 skids
31 skids
56 skids
13 skids
The unit "skids" is constant. The answer I am looking for is "127" or "127 skids"
Thank you.
Assuming that data is in cells A2:A5, then use:
Formula:
Please Login or Register to view this content.
Regards, TMSHTML Code:
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Thanks TM. I pasted that into my spreadsheet and it works. One other question: every now and then that same column will contain cells with text but no numbers. Is there a way to ignore those cells so I don't get an error #value! ?
Try this...
Data Range
A B C 2 27 skids ----- 127 3 31 skids 4 text 5 56 skids 6 13 skids 7 8 9 10
This array formula** entered in C2:
=SUM(IF(ISNUMBER(-LEFT(A2:A10)),--LEFT(A2:A10,FIND(" ",A2:A10))))
** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks