#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Reversing Data

Can you reverse the data in two different columns? If I have the
following column of numbers...

64
32

21
23
56
82
23

24
12

1

I want to reverse the data in the second group so it reads:

12
32
65
82
32

Is there an easy way to do that all at once?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Reversing Data

you could use a user defined function. paste the code into a vba module

Function RevText(strText As String) As String
RevText = StrReverse(strText)
End Function

and use it like any other XL function
=RevText(A4)
and copy it down. to coerce the return value from text back to numeric use
=--RevText(A4)

if you are new to vba, david mcritchie has some tutorials on his site to
help you navigate the vba editor.

http://www.mvps.org/dmcritchie/excel/excel.htm


"Peter" wrote:

Can you reverse the data in two different columns? If I have the
following column of numbers...

64
32

21
23
56
82
23

24
12

1

I want to reverse the data in the second group so it reads:

12
32
65
82
32

Is there an easy way to do that all at once?

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table is reversing data mike lewis in texas Excel Discussion (Misc queries) 2 November 20th 07 04:05 PM
Reversing chart Morten Snedker Charts and Charting in Excel 1 June 25th 07 12:13 PM
Reversing Last Name and First Names Marvin Excel Discussion (Misc queries) 2 May 1st 07 10:34 PM
REVERSING CELLS? FARAZ QURESHI Excel Discussion (Misc queries) 1 January 18th 07 07:19 PM
Reversing First & Last Name Magic Excel Worksheet Functions 3 April 6th 05 08:18 PM


All times are GMT +1. The time now is 05:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"