Hi, if you want through VBA then you can use below function 

Function reversetext(rtext As String)

reversetext = StrReverse(rtext)

End Function



thanks and regards
Ravinder Negi


________________________________
 From: Prafull Jadhav <prafulltjad...@gmail.com>
To: excel-macros@googlegroups.com 
Sent: Monday, July 22, 2013 11:21 AM
Subject: Re: $$Excel-Macros$$ Query - How to make reversal string.
 




Dear Expert ,

Can you expline the bold line as i want to know deeply.
Function Reverse(Text As String) As String
    Dim i As Integer
    Dim StrNew As String
    Dim strOld As String
    strOld = Trim(Text)
    For i = 1 To Len(strOld)
     StrNew = Mid(strOld, i, 1) & StrNew
    Next i
    Reverse = StrNew
End Function


On Mon, Jul 22, 2013 at 10:55 AM, Ashish Kumar <kumar.ashish...@gmail.com> 
wrote:

Dear VbA,
>
>
>thanks for your help. but this formula is not working properly.
>
>
>
>
>Thanks,
>Ashish
>
>
>
>On 22 July 2013 10:27, vba <v...@vabs.in> wrote:
>
>PFA
>>
>>
>>Thanks
>>
>>
>>
>>On Sun, Jul 21, 2013 at 11:10 PM, Ashish Kumar <kumar.ashish...@gmail.com> 
>>wrote:
>>
>>Dear Vabs,
>>>
>>>
>>>Thanks for you reply, the formula is working but when I change this formula 
>>>accordingly this is not working properly. please find attached excel sheet 
>>>for query data.
>>>
>>>
>>>
>>>On 21 July 2013 21:20, vba <v...@vabs.in> wrote:
>>>
>>>Hey,
>>>>
>>>>
>>>>Try this, this works up to 12 character.
>>>>
>>>>
>>>>=IF(LEN(B1)<1,"",MID(B1,LEN(B1),1))&
>>>>IF(LEN(B1)<2,"",MID(B1,LEN(B1)-1,1))&
>>>>IF(LEN(B1)<3,"",MID(B1,LEN(B1)-2,1))&
>>>>IF(LEN(B1)<4,"",MID(B1,LEN(B1)-3,1))&
>>>>IF(LEN(B1)<5,"",MID(B1,LEN(B1)-4,1))&
>>>>IF(LEN(B1)<6,"",MID(B1,LEN(B1)-5,1))&
>>>>IF(LEN(B1)<7,"",MID(B1,LEN(B1)-6,1))&
>>>>IF(LEN(B1)<8,"",MID(B1,LEN(B1)-7,1))&
>>>>IF(LEN(B1)<9,"",MID(B1,LEN(B1)-8,1))&
>>>>IF(LEN(B1)<10,"",MID(B1,LEN(B1)-9,1))&
>>>>IF(LEN(B1)<11,"",MID(B1,LEN(B1)-10,1))&
>>>>IF(LEN(B1)<12,"",MID(B1,LEN(B1)-11,1))
>>>>
>>>>
>>>>HTH//Cheers
>>>>
>>>>
>>>>
>>>>On Sun, Jul 21, 2013 at 7:51 PM, Ashish Kumar <kumar.ashish...@gmail.com> 
>>>>wrote:
>>>>
>>>>Dear Seniors,
>>>>>
>>>>>
>>>>>
>>>>>I have this type of data :
>>>>>
>>>>>
>>>>>54321
>>>>>ASDF
>>>>>8796564
>>>>>DFRESW
>>>>>
>>>>>
>>>>>But I want OUTPUT like below mentioned :
>>>>>
>>>>>
>>>>>12345
>>>>>FDSA
>>>>>4656978
>>>>>WSERFD
>>>>>
>>>>>
>>>>>How to make ti reversal through formula. Please help ....??
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>Thanks & Regards,
>>>>>Ashish Kumar
-- 
>>>>>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>>>>>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>>>>https://www.facebook.com/discussexcel
>>>>> 
>>>>>FORUM RULES
>>>>> 
>>>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>>>Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
>>>>>will not get quick attention or may not be answered.
>>>>>2) Don't post a question in the thread of another member.
>>>>>3) Don't post questions regarding breaking or bypassing any security 
>>>>>measure.
>>>>>4) Acknowledge the responses you receive, good or bad.
>>>>>5) Jobs posting is not allowed.
>>>>>6) Sharing copyrighted material and their links is not allowed.
>>>>> 
>>>>>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>>>>>members are not responsible for any loss.
>>>>>--- 
>>>>>
>>>>>You received this message because you are subscribed to the Google Groups 
>>>>>"MS EXCEL AND VBA MACROS" group.
>>>>>
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
>>>>>
>>>>>To post to this group, send email to excel-macros@googlegroups.com.
>>>>>Visit this group at http://groups.google.com/group/excel-macros.
>>>>>For more options, visit https://groups.google.com/groups/opt_out.
>>>>> 
>>>>> 
>>>>>
>>>>
>>>> -- 
>>>>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>>>>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>>>https://www.facebook.com/discussexcel
>>>> 
>>>>FORUM RULES
>>>> 
>>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>>Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
>>>>will not get quick attention or may not be answered.
>>>>2) Don't post a question in the thread of another member.
>>>>3) Don't post questions regarding breaking or bypassing any security 
>>>>measure.
>>>>4) Acknowledge the responses you receive, good or bad.
>>>>5) Jobs posting is not allowed.
>>>>6) Sharing copyrighted material and their links is not allowed.
>>>> 
>>>>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>>>>members are not responsible for any loss.
>>>>--- 
>>>>
You received this message because you are subscribed to a topic in the Google 
Groups "MS EXCEL AND VBA MACROS" group.
>>>>To unsubscribe from this topic, visit 
>>>>https://groups.google.com/d/topic/excel-macros/B6GqW6OVGqQ/unsubscribe.
>>>>To unsubscribe from this group and all its topics, send an email to 
>>>>excel-macros+unsubscr...@googlegroups.com.
>>>>
>>>>To post to this group, send email to excel-macros@googlegroups.com.
>>>>Visit this group at http://groups.google.com/group/excel-macros.
>>>>For more options, visit https://groups.google.com/groups/opt_out.
>>>> 
>>>> 
>>>>
>>>
>>> -- 
>>>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>>>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>>https://www.facebook.com/discussexcel
>>> 
>>>FORUM RULES
>>> 
>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will 
>>>not get quick attention or may not be answered.
>>>2) Don't post a question in the thread of another member.
>>>3) Don't post questions regarding breaking or bypassing any security measure.
>>>4) Acknowledge the responses you receive, good or bad.
>>>5) Jobs posting is not allowed.
>>>6) Sharing copyrighted material and their links is not allowed.
>>> 
>>>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>>>members are not responsible for any loss.
>>>--- 
>>>You received this message because you are subscribed to the Google Groups 
>>>"MS EXCEL AND VBA MACROS" group.
>>>To unsubscribe from this group and stop receiving emails from it, send an 
>>>email to excel-macros+unsubscr...@googlegroups.com.
>>>To post to this group, send email to excel-macros@googlegroups.com.
>>>Visit this group at http://groups.google.com/group/excel-macros.
>>>For more options, visit https://groups.google.com/groups/opt_out.
>>> 
>>> 
>>>
>>
-- 
>>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>>https://www.facebook.com/discussexcel
>> 
>>FORUM RULES
>> 
>>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not 
>>get quick attention or may not be answered.
>>2) Don't post a question in the thread of another member.
>>3) Don't post questions regarding breaking or bypassing any security measure.
>>4) Acknowledge the responses you receive, good or bad.
>>5) Jobs posting is not allowed.
>>6) Sharing copyrighted material and their links is not allowed.
>> 
>>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>>members are not responsible for any loss.
>>--- 
>>You received this message because you are subscribed to a topic in the Google 
>>Groups "MS EXCEL AND VBA MACROS" group.
>>To unsubscribe from this topic, visit 
>>https://groups.google.com/d/topic/excel-macros/B6GqW6OVGqQ/unsubscribe.
>>To unsubscribe from this group and all its topics, send an email to 
>>excel-macros+unsubscr...@googlegroups.com.
>>To post to this group, send email to excel-macros@googlegroups.com.
>>Visit this group at http://groups.google.com/group/excel-macros.
>>For more options, visit https://groups.google.com/groups/opt_out.
>> 
>> 
>>
>
-- 
>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>https://www.facebook.com/discussexcel
> 
>FORUM RULES
> 
>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
>quick attention or may not be answered.
>2) Don't post a question in the thread of another member.
>3) Don't post questions regarding breaking or bypassing any security measure.
>4) Acknowledge the responses you receive, good or bad.
>5) Jobs posting is not allowed.
>6) Sharing copyrighted material and their links is not allowed.
> 
>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>members are not responsible for any loss.
>--- 
>You received this message because you are subscribed to the Google Groups "MS 
>EXCEL AND VBA MACROS" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to excel-macros+unsubscr...@googlegroups.com.
>To post to this group, send email to excel-macros@googlegroups.com.
>Visit this group at http://groups.google.com/group/excel-macros.
>For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
>
-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.
 
NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to