Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 60
Default help with database function

can someone help me with this:

i have a database named "data", it looks like this:

date covers rev serv food1
10/01/06 100 dining 5000
10/01/06 50 promo 1000

database is located in sheet 2

in sheet 1 i have this:

date food liquor wine
10/01/06 formula here

i want a formula in the food column that looks in "data" for column "food1"
and brings the date=10/01/06 and the rev<"promo", so it will bring 5000

thanks a lot for your help


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,939
Default help with database function

A couple of possibilities. One would be to create a pivot table from your
source data. That will allow you to aggregate your data and include or
exclude the itmes you want. The other is to use formulas (as you indicate).
The formula you probalby want is a sumproduct formula. For a complete
explanation check out this link...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
--
HTH...

Jim Thomlinson


"andresg1975" wrote:

can someone help me with this:

i have a database named "data", it looks like this:

date covers rev serv food1
10/01/06 100 dining 5000
10/01/06 50 promo 1000

database is located in sheet 2

in sheet 1 i have this:

date food liquor wine
10/01/06 formula here

i want a formula in the food column that looks in "data" for column "food1"
and brings the date=10/01/06 and the rev<"promo", so it will bring 5000

thanks a lot for your help


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 function - convert flat table Arjen de Winter Excel Worksheet Functions 3 September 22nd 06 07:01 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM


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