LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default DATA SORTING MACRO

I have a totally messed up spreadsheet coming from multiple mergers of
spreadsheets with basically the same data but different column title
arrangements
My sheet looks like this

A B C D
E F
1 NAME DATE QUEST? ANSWER! =SOLUTION <COMMENT
2 Jan 22/06/05 why? Black! = 3586
< 0
3 Karen 4/10/04 yellow! =ok why not ?
<-
4 Johann red! maybe? <ASAP =pending
31/08/06
5 Stefan green! when? <Now 10/10/05
=325
6 John who? Nobody! 20/10/06 =in prgrss
<impossible
7 Karen yellow! =415 why not? <impossible
3/10/04
8 Cecil =none 01/02/06 grey! =donE
<positive
9 Johann 18/02/04 blue! where? =Positive < n
acceptable
etc€¦.

I want to restore a €śnormal sheet€ť with the right data in the right columns
€¦without loosing the horizontal integrity however.
Currently I do this manually with multiple auto filter and then copy past
the data in a new spreadsheet to construct a little excerpt for the business
on hand with a particular person when and if needed. Then I obtain €¦tediously

A B C D E
F
1 NAME DATE QUEST? ANSWER SOLUTION COMMENT
2 Johann 31/08/06 maybe? Red! =Pending <ASAP
3 Johann 18/02/06 where? Blue! =positiv <not
acceptable

It would be handy to do this ones and forever for the entire spreadsheet
with a vba routine if at any possible given the chaos!!!
The only consistency throughout the whole spreadsheet is that
names are kept under NAMES and all the items summed up in the row after
that particular name( say in line 6 for John€¦) has been performed at that
particular date (who appears in E and should be in C6) for that person
€¦.so... should be kept together in the new spreadsheet
If , of course, somebody could write a routine to clean up he entire mess
that would be fantastic; but I would already be happy if I could sort out
automatically a name and date consistently with the rest of the horizontal
rows like this:
A B C D
E F
1 NAME DATE QUEST? ANSWER SOLUTION COMMENT
2 Johann 31/08/06 maybe? <ASAP =pending red!
3 Johann 18/02/04 blue! where? =Positive
< not acceptable

The problem boils down to a date filtering, extracting loop routine in my
opinion ....
To make it even more difficult : the signs: ? < = ! are just used here to
differentiate the nature of the data since this is a hypothetical table €¦in
reality these data are large text strings, or when it comes to the heading
€ś=SOLUTION€ť sometimes a number format (this can give some surprises when
trying to extract dates in their number format)so this signs cannot be used
in a filtering vba routine as criteria to handle the restructuring of the
chaos
I hope somebody can help €¦?
Thousand thanks in advance€¦

 
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
Formula or macro needed for sorting complex data issue. malycom Excel Discussion (Misc queries) 4 November 27th 08 07:24 AM
help with sorting data in excel(Macro) [email protected] Excel Programming 2 September 11th 06 03:26 PM
Macro for sorting color data Tufail Excel Programming 2 July 4th 06 01:06 PM
Data sorting macro Y. Belenky Excel Programming 2 December 28th 03 08:27 PM
Help with data sorting - macro? rine9558 Excel Programming 5 November 11th 03 02:28 AM


All times are GMT +1. The time now is 03:00 PM.

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

About Us

"It's about Microsoft Excel"