left sum

Utsav

Board Regular
Joined
Jun 1, 2006
Messages
170
Hi dear,

I have got two values
like this 63/59 innone cell and 18/11 in other cell.I want to add left values and right values ,I have done this using left function

=LEFT(C9,2)+LEFT(J9,2)

but the problem is some time the values is in single digit , then the formula stops working bcoz of this "/".

jus help me ...

Utsav
 
If the format remains the same ie 500dr or 500cr then you could extract the direction (dr/cr) via:

=RIGHT(TRIM(A1),2)

does this answer your query, or were you after a more generalised solution?
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
like if I want to extract
5000from dips5000 or dips from disp5000.

like I don''t know the length of the text I want to extarct

In first case , I want to extract the numeric part in the other case I want to extract the alpahabetic part .

sorry to bother you again ...
but I m also trying to learn this trick ....

Utsav
 
Upvote 0
Here's one way to lookup the numeric part (assuming the numbers are together and not separated by any alpha or other characters):

Code:
=-LOOKUP(0,-MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&"0123456789")),ROW(INDIRECT("1:"&LEN(A1)))))

Assuming you have the numeric extract in cell B1, then you can get the alpha only:

Code:
=SUBSTITUTE(A1,B1,"")

Hope thsi helps!
 
Upvote 0
Dear Richard,

Can u plz xplain me rhe whole formula , it will help me in understanding it and implementing ...

Regards
Utsav
 
Upvote 0

Forum statistics

Threads
1,216,028
Messages
6,128,392
Members
449,445
Latest member
JJFabEngineering

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top