ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using less than "<" in formula (https://www.excelbanter.com/excel-worksheet-functions/200299-using-less-than-formula.html)

Bernie R

Using less than "<" in formula
 
I'm trying to use a formula in one worksheet that draws data from two other
worksheet. I have no problem using the "" in formulas, but when I use the
"<" it won't work. My formula is =if(ust!i9="m9",
if(rawdata!r2"<05may08",ust!$b12," ")

It has issues with the date. I tried using AND in the formula but it
error'd on the date.

Any help would be greatly appreciated.

Otto Moehrbach[_2_]

Using less than "<" in formula
 
Take the < symbol out of the quotes. And "05may08" is not a date. Put the
date in a cell and reference the cell. HTH Otto
"Bernie R" <Bernie wrote in message
...
I'm trying to use a formula in one worksheet that draws data from two
other
worksheet. I have no problem using the "" in formulas, but when I use
the
"<" it won't work. My formula is =if(ust!i9="m9",
if(rawdata!r2"<05may08",ust!$b12," ")

It has issues with the date. I tried using AND in the formula but it
error'd on the date.

Any help would be greatly appreciated.



Bob Umlas, Excel MVP

Using less than "<" in formula
 
DATEVALUE("05MAY08") will convert that text to a valid excel date

"Otto Moehrbach" wrote:

Take the < symbol out of the quotes. And "05may08" is not a date. Put the
date in a cell and reference the cell. HTH Otto
"Bernie R" <Bernie wrote in message
...
I'm trying to use a formula in one worksheet that draws data from two
other
worksheet. I have no problem using the "" in formulas, but when I use
the
"<" it won't work. My formula is =if(ust!i9="m9",
if(rawdata!r2"<05may08",ust!$b12," ")

It has issues with the date. I tried using AND in the formula but it
error'd on the date.

Any help would be greatly appreciated.




Dave Peterson

Using less than "<" in formula
 
I would use an unambiguous date format:

=if(ust!i9="m9",if(rawdata!r2<date(2008,5,5),ust!$ b12,"")

And I'd return an empty string "" instead of " ".







Bernie R wrote:

I'm trying to use a formula in one worksheet that draws data from two other
worksheet. I have no problem using the "" in formulas, but when I use the
"<" it won't work. My formula is =if(ust!i9="m9",
if(rawdata!r2"<05may08",ust!$b12," ")

It has issues with the date. I tried using AND in the formula but it
error'd on the date.

Any help would be greatly appreciated.


--

Dave Peterson


All times are GMT +1. The time now is 12:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com