Hi all
Need some help
How can I extract values between <>
Example:
<15.000,00kn 40,00kn>
I need to extract 15.000,00 and 40,00 to a variable1(15.000,00) and variable2(40,00)
Thank you
Hi all
Need some help
How can I extract values between <>
Example:
<15.000,00kn 40,00kn>
I need to extract 15.000,00 and 40,00 to a variable1(15.000,00) and variable2(40,00)
Thank you
Is the source of the string a cell? A value assigned to a variable in VBA?
Is there always a space between the 2 values?
Details, and a set of data more representative of different situations would really help here.
Also, is the source string bigger or does it start with < and end with >
Last edited by Arkadi; 04-10-2018 at 01:34 PM.
Please help by:
Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know
There are 10 kinds of people in this world... those who understand binary, and those who don't.
One way:
=TRIM(MID(SUBSTITUTE("¦"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE($A1,"<",""),">","")," ","¦"),"¦",REPT(" ",125)),125*COLUMNS($A:A),125))
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
Copy formula across and down... though I have just seen that this was in the VBA sub-forum
A vba option:
![]()
Please Login or Register to view this content.
Does my code or Glenn's formula solve your issue then?
Just in case
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks