I am trying to add number written in below format in cell: Please help me in a single formula so that in next cell I can add below numbers:
0.25/0.568/0.2568/0.12356
I am trying to add number written in below format in cell: Please help me in a single formula so that in next cell I can add below numbers:
0.25/0.568/0.2568/0.12356
Life's a spreadsheet, Excel!
Say thanks, Click *
For the string in A1
Formula:
Please Login or Register to view this content.
confirmed with <Ctrl>+<Shift>+<Enter> (it is an array formula)
Copy down for rest of the strings
Regards,
Vandan
Here is non-array version of my solution post #3
Formula:
Please Login or Register to view this content.
Hi Vandan,
Thanx for your help. formula is working. Great !
is it possible to explain details how is it working. trying to fig out.
Regards
SM
Last edited by shoot for moon; 10-28-2013 at 11:14 AM.
Hi Vandan,
Thanx for your help. formula is working. Great !
is it possible to explain details how is it working. trying to fig out.
Regards,
SM
Last edited by shoot for moon; 10-28-2013 at 11:14 AM.
welcome to the forum, AK. Tony Valko did a formula here & i explained it in post #14:
http://www.excelforum.com/excel-form...ml#post3438268
just change all the "-" to "/". so it's:
=SUM(IF(MID("/"&A1,COLUMN(1:1),1)="/",--(MID(A1,COLUMN(1:1),FIND("/",A1&"/",COLUMN(1:1))-COLUMN(1:1)))))
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
array formula
=SUM(IFERROR(--MID(SUBSTITUTE(A1,"/",REPT(" ",LEN(A1))),(ROW($1:$100)-1)*LEN(A1)+1,LEN(A1)),""))
Even more simple, perhaps.
Assuming the cell in question is A1, then, with B1 the active cell, Go to Name Manager and define a new name, Sum_String say, and enter this in the Refers to: box:
=EVALUATE(SUBSTITUTE(Sheet1!$A1,"/","+"))
Exit Name Manager. Then, in B1, enter this formula:
=Sum_String
Copy down as required.
Regards
Thanks for details.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks