#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default excel 2003

Looking for the correct formula to get data from my odbc download that gives
data for a number of general ledger codes and covers multiple peoples
accounts. The data needs to go on each persons individual recap [which is
divided into three sections and has multiple accounts applicable to each
section]starting at the first line of their recap, assuming there is
activity. If there is addtional activity put it on the second line and so on.

example: Employee 5006 Employee 5001 Employee 5002

downloaded
10011187015006
10011187025006
10011187055002
10011187035006
I would want to get three lines of data for
Employee 5006 shown on the first three lines that title, and one line of data
below Employee 5001

Not explaining it well, but hope you get the drift. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default excel 2003

I'm not sure exactly what you have or what you are trying to achieve,
but I've made some assumptions. First of all, assume that you have a
sheet called "download" which has your data in column A starting with
A1. Put this formula in B1:

=RIGHT(A1,4)

to get the employee number, and this in C1:

=B1&"_"&COUNTIF(B$1:B1,B1)

to give you the employee number followed by a sequential code. Copy
these formulae down the columns as far as needed.

I've assumed that you have a second sheet in which you have employee
numbers in A1, B1, C1 etc, such as:

5001 5002 5006

and so on. Put this formula in A2:

=IF(ISNA(MATCH(A$1&"_"&ROW(download!$A1),download! $C$1:$C
$4,0)),"",INDEX(download!$A$1:$A$4,MATCH(A$1&"_"&R OW(download!
$A1),download!$C$1:$C$4,0)))

and copy this across and down as far as you think you need. It will
give these results for your sample data:

5001 5002 5006
10011187055002 10011187015006
10011187025006
10011187035006

or even this, by just changing the headers to the order you asked for:

5006 5001 5002
10011187015006 10011187055002
10011187025006
10011187035006


Hope this helps.

Pete


On Oct 21, 6:34*pm, drose wrote:
Looking for the correct formula to get data from my odbc download that gives
data for a number of general ledger codes and covers multiple peoples
accounts. *The data needs to go on each persons individual recap [which is
divided into three sections and has multiple accounts applicable to each
section]starting at the first line of their recap, assuming there is
activity. *If there is addtional activity put it on the second line and so on.

example: * * * * * * Employee 5006 * * * *Employee 5001 * * *Employee 5002

downloaded
10011187015006
10011187025006
10011187055002
10011187035006
* * * * * * * * * * * * * I would want to get three lines of data for
Employee 5006 shown on the first three lines that title, and one line of data
below Employee 5001

Not explaining it well, but hope you get the drift. *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
Convert Excel 2003 spreadsheet into Outlook Contacts table 2003 Stuart[_4_] Excel Discussion (Misc queries) 2 October 6th 08 05:07 PM
opening excel files from access 2003, win xp, office 2003 Nugimac Excel Discussion (Misc queries) 2 April 26th 07 12:32 PM
import Excel 2003 file into Outlook 2003 - NO NAMED RANGES?? lewisma9 Excel Discussion (Misc queries) 0 February 27th 07 12:23 AM
Copying Excel 2003 Selection into Outlook 2003 HTML E-Mail Message [email protected] Excel Discussion (Misc queries) 0 July 10th 06 03:07 PM
Excel 2003 Database Driver Visual FoxPro 7 on Server 2003. Cindy Winegarden Excel Discussion (Misc queries) 0 November 28th 04 12:07 AM


All times are GMT +1. The time now is 01:19 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"