PC Review


Reply
Thread Tools Rate Thread

Resorting nightmare

 
 
KWhamill
Guest
Posts: n/a
 
      17th Jun 2008
I have this spreadsheet i need to turn into a txt file for an database
uploader. It Looks like this;
Alpha Number ID Account1 amt account2 amt account3 amt
What I need is this;
Alpha Number ID Account1 amt
Alpha Number ID Account2 amt
Alpha Number ID Account3 amt
What i thought was the obvious solution isn't working. I was wondering if
anyone has done a macro that might untangle this.

 
Reply With Quote
 
 
 
 
Don
Guest
Posts: n/a
 
      17th Jun 2008
If I understand this correctly, you have the first two columns , then account
1 + amt , account 2 + amt, etc. How long is your data?
you could copy a1:d99 assuming you have 99 lines which would get the first
set, then copy a1:b99 to a100, then e1:f99 to c100 which would get the 2nd
account
etc

you would end up with 3X the number of lines then you could sort by alpha
number. To keep track , I think I would have the first column tell me if it
was for account 1 or account 2 or account 3

you could do this with VB, but depends how much data and how slick you want it

good luck

"KWhamill" wrote:

> I have this spreadsheet i need to turn into a txt file for an database
> uploader. It Looks like this;
> Alpha Number ID Account1 amt account2 amt account3 amt
> What I need is this;
> Alpha Number ID Account1 amt
> Alpha Number ID Account2 amt
> Alpha Number ID Account3 amt
> What i thought was the obvious solution isn't working. I was wondering if
> anyone has done a macro that might untangle this.
>

 
Reply With Quote
 
 
 
 
KWhamill
Guest
Posts: n/a
 
      18th Jun 2008
Don,
thank you, i think you have the right idea. The number of lines is a problem
because it varies any where from 2 to about 90 and they fluctuate one or two
either way. there are several of these that need to be converted the same
way. I was thinking VB because I also have to add some columns as place
holders for the data uploader.

"Don" wrote:

> If I understand this correctly, you have the first two columns , then account
> 1 + amt , account 2 + amt, etc. How long is your data?
> you could copy a1:d99 assuming you have 99 lines which would get the first
> set, then copy a1:b99 to a100, then e1:f99 to c100 which would get the 2nd
> account
> etc
>
> you would end up with 3X the number of lines then you could sort by alpha
> number. To keep track , I think I would have the first column tell me if it
> was for account 1 or account 2 or account 3
>
> you could do this with VB, but depends how much data and how slick you want it
>
> good luck
>
> "KWhamill" wrote:
>
> > I have this spreadsheet i need to turn into a txt file for an database
> > uploader. It Looks like this;
> > Alpha Number ID Account1 amt account2 amt account3 amt
> > What I need is this;
> > Alpha Number ID Account1 amt
> > Alpha Number ID Account2 amt
> > Alpha Number ID Account3 amt
> > What i thought was the obvious solution isn't working. I was wondering if
> > anyone has done a macro that might untangle this.
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resorting a DataTable or DataView =?Utf-8?B?U2NvdHQgVw==?= Microsoft ADO .NET 2 26th Aug 2004 07:38 PM
!Problem in resorting a form or subform based on parameterized query Savvoulidis Iordanis Microsoft Access Form Coding 0 21st Jun 2004 11:32 AM
Why does my pc keep changing resolution and resorting my desktop? Ian Roberts Windows XP General 1 26th Mar 2004 11:48 AM
Resorting default folder types =?Utf-8?B?WW9tZWs=?= Windows XP General 1 7th Mar 2004 11:33 PM
RE: Resorting "Folder List" and "Toolbar" Robert Findlay [MSFT] Microsoft Outlook Discussion 0 24th Feb 2004 05:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:44 PM.