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


Hi,

Essentially, I would like to be able to specify the criteria inside the
formulae DGET, DSUM, etc. as opposed to referencing cells elsewhere in
the spreadsheet. I'll give a bit of an example (and yes, I know for
this example there are other convenient ways to do it, that's not the
point):

Limitations:
- No VBA (can't be guaranteed others will turn on macros)

Database: Let it be called "db" for reference below.
Key Value
A 5
B 6
C 7

List:
Key OtherInfo Value
A Something [Formula]
A Whatever [Formula]
B YetMore [Formula]

Where the [Formula] is = DGET(db, "Value", [Criteria])
Where the [Criteria] is generated based on the key value in the current
row. ie. for the first row in the List, it would be Key = A, and so
on.

So, is there any way to assemble the criteria inside the formula? And
if so, how?

Thanks,
Scott


--
Maistrye
------------------------------------------------------------------------
Maistrye's Profile: http://www.excelforum.com/member.php...o&userid=36078
View this thread: http://www.excelforum.com/showthread...hreadid=558659

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
SUMIF function using Criteria on different worksheet Taxed Mind Excel Discussion (Misc queries) 2 April 14th 06 02:04 PM
can countif function look at 2 separate columns for criteria blake7 Excel Worksheet Functions 2 March 16th 06 08:07 PM
Excel COUNTIF Function - a range as criteria ? joes Excel Worksheet Functions 2 March 6th 06 01:13 PM
How can I reference a cell as the criteria in a count if function. RobA Excel Discussion (Misc queries) 1 August 17th 05 06:41 PM
SUMIF function - criteria of between two dates. How? Frannie21 Excel Worksheet Functions 4 January 27th 05 03:28 PM


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