Hi all,
I hope someone can help on this one. I am sooo stumped.
I have one column with numbers as text on the left and right separated by "..", i.e.,
4.56..12.01
9.12..0.34
11.67..5.46
This is data that was stored in this fashion and I don't know why. I have about 1500 of these in one column.
I need to add the left-most numbers and the right-most numbers and then a total. Attached please find a sample workbook.
If possible I would really appreciate a formula that can add the numbers on the left and another formula to add the numbers on the right.
Thank you in advance for helping with or just reading this post.
Last edited by luix; 10-21-2011 at 01:13 PM. Reason: SOLVED
I have made left side (You can figure out the right side in similar way)
ok. with right side was worst but it works![]()
Last edited by tom1977; 10-21-2011 at 03:14 AM.
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
=1*LEFT(B4,FIND("..",B4)-1) left side no problem =1*RIGHT(B1,FIND("..",B1)-1) some errors have to change -1 in some numbers
Contributors to this forum do not get paid. They give their valuable time to help you solve your problem. That's why feel free to CLICK their STARicon to say thank you -even the given idea/solution didn't really solve your queries. The time given to you deserves a small gratitude anyway.
Dare to give a pencil to a child. http://www.blackpencilproject.org/
Use two helper columns say D and E
In D enterand pull down as needed=LEFT(B1,FIND("..",B1)-1)+0
In E enterand pull down=RIGHT(B1,LEN(B1)-FIND("..",B1)-1)+0
You can combine in one column if you like=RIGHT(B1,LEN(B1)-FIND("..",B1)-1)+LEFT(B1,FIND("..",B1)-1)
Quoting entire posts clutters the forum and makes threads hard to read !
If you are pleased with a member's answer then use the Star icon to rate it
Click here to see forum rules
Thank you all... but alas not solved yet since I was aiming at not having to use helper columns -see original post.
Tom1977 gave it a good try but the all the formulas in the workbook return a #VALUE error.
I will fiddle around with the formulas therein to see if I can eliminate the errors.
If someone can point me in the right direction of a starting formula I'd appreciate it.
Thanks again!
Luix
Last edited by luix; 10-21-2011 at 11:53 AM.
.since I was aiming at not having to use helper columns -see original post
Does the attached help? ( to me col D and E are helper columns)
Quoting entire posts clutters the forum and makes threads hard to read !
If you are pleased with a member's answer then use the Star icon to rate it
Click here to see forum rules
How about, for the left side:
=SUM(INDEX(VALUE(LEFT(B1:B19,FIND("..",B1:B19)-1)),0))
And for the right side
=SUM(INDEX(VALUE(MID(B1:B19,FIND("..",B1:B19)+2,255)),0))
Luix
Did You accepted my formulas by CTRL+SHIFT+ENTER?(without this always will be error) I have used array formulas
Last edited by tom1977; 10-21-2011 at 12:55 PM.
Regards
tom1977
If You are satisfied with my solution click the small star icon on the left to say thanks.
Thank you all. Everyone contributed significantly. All getting nice ratings from me
This one is solved!
Thank you Andrew-R, you hit the mark!
Thank you arthurbr but my intent wasThank you Tom1977 but the array formulas did not work for some reason.not having to use helper columns
Thank you vlady who always has a watchful eye!
For the sake of being thorough I will add to Andrew-R's solution with the following ARRAY formulas that also do the job:
Left side numbers added:
Right side numbers added:=SUM(VALUE(SUBSTITUTE(B1:B19,RIGHT(B1:B19,LEN(B1:B19)-FIND("..",B1:B19)+1),"")))
To add both left and right numbers just put both formulas in a cell with a + between them.=SUM(VALUE(SUBSTITUTE(B1:B19,LEFT(B1:B19,FIND("..",B1:B19)+1),"")))
Have a great weekend buds!
Just realized there are some blank cells in my actual column. So the formulas return a #VALUE error when they encounter a blank.
The following ARRAY formulas correct that problem:
=SUM(IF(ISNUMBER(SEARCH("..",B1:B19)),SUBSTITUTE(B1:B19,RIGHT(B1:B19,LEN(B1:B19)-FIND("..",B1:B19)+1),"")+0))=SUM(IF(ISNUMBER(SEARCH("..",B1:B19)),SUBSTITUTE(B1:B19,LEFT(B1:B19,FIND("..",B1:B19)+1),"")+0))
Last edited by luix; 10-21-2011 at 02:11 PM. Reason: upload example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks