LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 464
Default Using cell reference with logical operator in DGET expression

But if I enter <V2 or V2 or
<=V2 or <=V2, I get a VALUE erro

Use;

="" & V2 etc.



"BoxleyFarm" wrote in message
...
I am using DGET to search an array in the worksheet to find a particular
percent to use in a calculation elsewhere in the spreadsheet. The row
members
of the array contain a series of from and to values that I use to identify
which row has the percent I am looking for. I have defined the array as a
range and I can use the logical operatirs with numeric values in the range
criteria and everything works fine. For example, I can use <500 in the
appropriate cell in range criteria to find the percent to use when the
value
for that column in the array is less than 500. All working fine. If,
however,
I use a cell reference in the criteria range where the value I want to tet
is
coming from, for example cell +V2 in the worksheet, the only logical
operator
I seem to be able to use is =. For example, if I enter =V2 in the criteria
range, the DGET expression resolves properly. But if I enter <V2 or V2 or
<=V2 or <=V2, I get a VALUE error. In order to resolve for the correct
percent I have to be able to test multiple criteria for "greater than" Col
A
and "less than Col B, and so forth. And the values I am testing against
are
coming from an import into the spreadsheet. So what I really need is the
ability to take an imported value which is located in a cell and configure
the range criteria to find the row in the array where that value fits
between
the values in ColA and ColB, etc. Can this be done with DGet?


 
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
logical expression help please KRK New Users to Excel 7 March 19th 09 05:02 PM
Change Boolean / Logical Operator using Input Cell Sam via OfficeKB.com Excel Worksheet Functions 2 May 1st 08 06:18 PM
Can I use more complex logical expression for sumif as creteria? xwenx Excel Worksheet Functions 7 April 28th 06 12:53 AM
How do you determine if a field is blank in a logical expression. Van Excel Discussion (Misc queries) 2 December 5th 05 10:08 PM
Syntax error (missing operator) in query expression '6 Wescott Rd# shealy Excel Discussion (Misc queries) 0 June 9th 05 09:53 PM


All times are GMT +1. The time now is 06:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"