#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default database query

Hi,

I have a database which contains Customer Code, Customer Name, Order
Manager, Customer Region.
I am creating a template in which after entering the Customer Code;

Customer Name, Order Manager, Customer Region.

gets displayed automatically using Vlookup.
But Order Manager is getting updated regularly & customer code is been added
& deleted regularly.

I need another method that is linking database (Excel) using query within
Excel? so that as excel database gets updated everything gets updated in my
new template .



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 527
Default database query

I think that you need dynamic ranges for the fields and table. For the table
CustomerDetails, comprising the fields Customer_Name, Customer_Order,
Customer_Region

Custdetails =OFFSET(Customer_Name,0,0,COUNTA(Sheet3!$A:$A)-1,COUNTA(Sheet3!1:1))
Customer_Name =OFFSET(Sheet3!$A$2,0,0,COUNTA(Sheet3!$A:$A)-1)
CustRgn =OFFSET(Customer_Name,0,2)
Order_Mgr =OFFSET(Customer_Name,0,1)

You may not need CustRgn and Order_Mgr just the name and CustDetails Table.

The table is flexible for columns as well as rows so if other fields are
added later they will be included.

You can also use the Customer name in a data validation for your lookups.
Where the Lookups are to go choose, Data, Validation, In the Allow box choose
List and in the source box type =Customer_Name.

Hope this helps
Peter Atherton

"Excel sheet password" wrote:

Hi,

I have a database which contains Customer Code, Customer Name, Order
Manager, Customer Region.
I am creating a template in which after entering the Customer Code;

Customer Name, Order Manager, Customer Region.

gets displayed automatically using Vlookup.
But Order Manager is getting updated regularly & customer code is been added
& deleted regularly.

I need another method that is linking database (Excel) using query within
Excel? so that as excel database gets updated everything gets updated in my
new template .



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
database query not showing foxpro database How I import data mangat New Users to Excel 1 June 24th 07 03:31 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 1 November 29th 05 01:44 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Ron Coderre Excel Discussion (Misc queries) 0 November 28th 05 06:16 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


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

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"