A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

getting data from a database into a form



 
 
Thread Tools Display Modes
  #1  
Old October 8th, 2006, 12:37 PM posted to microsoft.public.excel.worksheet.functions
Brendan
external usenet poster
 
Posts: 70
Default getting data from a database into a form

Hi all,
i am trying to create a form from a database.

in the first col is the account #.
in the second is the company name
and in the third to fiftyforth is each weeks spending

what i want to extract is first 3 weeks spend

ie.

ACC#..........Company
Name.........Wk1.........wk2.........Wk3.......... wk4......Wk5 ETC
123.............Company
1................34.............100........79..... .......221......333
321.............Company
2................21.............0.............0... ...........223......34
222.............Company
3................0................342.......0..... ..........0...........55
111.............Company
4................0................0............334 ..........429......123
234.............Company
5................0................0............0.. .............456......0
ECT

i want a form that will tell me what week company first first traded. the
form needs to look somethin like this

Company Name: Company 2.............ACC#: 321

week........spend
1..............21
4..............223
5..............24

i have figured out how to get the Company Name and other details in there by
only typing the account#, but i cant get the info above.

can someone please help me!!!!!!!!!!!!!!!!!!!
  #2  
Old October 8th, 2006, 12:56 PM posted to microsoft.public.excel.worksheet.functions
Brendan
external usenet poster
 
Posts: 70
Default getting data from a database into a form

Sorry all the database looks like this

ACC#..........CompanyName.........Wk1.........wk2. ........Wk3..........wk4......Wk5ETC
123.............Company1................34........ .100....
.....79............221......333
321.............Company2................21........ .0......
.....0..............223......34
222.............Company3................0......... 342.....
...0...............0........55
111.............Company4................0......... ..0............334......
.....429......123
234.............Company5................0......... ..0............0..............456......0
ECT

  #3  
Old October 8th, 2006, 10:24 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default getting data from a database into a form

use VLOOKUP function

"brendan" wrote:

Hi all,
i am trying to create a form from a database.

in the first col is the account #.
in the second is the company name
and in the third to fiftyforth is each weeks spending

what i want to extract is first 3 weeks spend

ie.

ACC#..........Company
Name.........Wk1.........wk2.........Wk3.......... wk4......Wk5 ETC
123.............Company
1................34.............100........79..... .......221......333
321.............Company
2................21.............0.............0... ...........223......34
222.............Company
3................0................342.......0..... ..........0...........55
111.............Company
4................0................0............334 ..........429......123
234.............Company
5................0................0............0.. .............456......0
ECT

i want a form that will tell me what week company first first traded. the
form needs to look somethin like this

Company Name: Company 2.............ACC#: 321

week........spend
1..............21
4..............223
5..............24

i have figured out how to get the Company Name and other details in there by
only typing the account#, but i cant get the info above.

can someone please help me!!!!!!!!!!!!!!!!!!!

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:49 AM.


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