Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Excel formula using non-literal values

I have defined a formula that tests the value in 3 columns. If the value in
each column passes the test, the formula calculates a value for another
column. e.g. =IF(AND(I7<750,J7<100,K7<50000),C7*0.06,"0")

I've noticed that if the value of the column being tested contains a value
symbol (< or ), the formula does not calculate. It appears the formula
requires a literal value ("10" vs. "<10").

Is there a way around this?

Thank you for your time.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Excel formula using non-literal values

It requires a number which is logical but if you mean that
the cell holds the text string <750 and not 750 another cell holds <100 etc
then you would need to use


=IF(AND(I7="<750",J7="<100",K7="<50000"),C7*0.06,0 )


and you can only use the < meaning less than for real numbers






--


Regards,


Peo Sjoblom

"jbdmom" wrote in message
...
I have defined a formula that tests the value in 3 columns. If the value
in
each column passes the test, the formula calculates a value for another
column. e.g. =IF(AND(I7<750,J7<100,K7<50000),C7*0.06,"0")

I've noticed that if the value of the column being tested contains a value
symbol (< or ), the formula does not calculate. It appears the formula
requires a literal value ("10" vs. "<10").

Is there a way around this?

Thank you for your time.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Excel formula using non-literal values

Thanks Peo.

My problem is the values can range from "<10" to "560000" and any real
number in between. But if it's less than < 750 (which <10 is), I wanted it
to auto-calculate. I'll just propose we report it as 10 if it's "<10" for
calculation purposes. It might be OK.

Thanks again.


"Peo Sjoblom" wrote:

It requires a number which is logical but if you mean that
the cell holds the text string <750 and not 750 another cell holds <100 etc
then you would need to use


=IF(AND(I7="<750",J7="<100",K7="<50000"),C7*0.06,0 )


and you can only use the < meaning less than for real numbers






--


Regards,


Peo Sjoblom

"jbdmom" wrote in message
...
I have defined a formula that tests the value in 3 columns. If the value
in
each column passes the test, the formula calculates a value for another
column. e.g. =IF(AND(I7<750,J7<100,K7<50000),C7*0.06,"0")

I've noticed that if the value of the column being tested contains a value
symbol (< or ), the formula does not calculate. It appears the formula
requires a literal value ("10" vs. "<10").

Is there a way around this?

Thank you for your time.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Excel formula using non-literal values

Hi,

This might do what you appear to want:

=IF(AND(IF(ISTEXT(I7),--MID(I7,2,5),I7)<750,IF(ISTEXT(J7),--MID(J7,2,5),J7)<100,IF(ISTEXT(K7),--MID(K7,2,5),K7)<50000),IF(ISTEXT(I7),MID(I7,2,5),I 7)*0.06,0)
--
Thanks,
Shane Devenshire


"jbdmom" wrote:

Thanks Peo.

My problem is the values can range from "<10" to "560000" and any real
number in between. But if it's less than < 750 (which <10 is), I wanted it
to auto-calculate. I'll just propose we report it as 10 if it's "<10" for
calculation purposes. It might be OK.

Thanks again.


"Peo Sjoblom" wrote:

It requires a number which is logical but if you mean that
the cell holds the text string <750 and not 750 another cell holds <100 etc
then you would need to use


=IF(AND(I7="<750",J7="<100",K7="<50000"),C7*0.06,0 )


and you can only use the < meaning less than for real numbers






--


Regards,


Peo Sjoblom

"jbdmom" wrote in message
...
I have defined a formula that tests the value in 3 columns. If the value
in
each column passes the test, the formula calculates a value for another
column. e.g. =IF(AND(I7<750,J7<100,K7<50000),C7*0.06,"0")

I've noticed that if the value of the column being tested contains a value
symbol (< or ), the formula does not calculate. It appears the formula
requires a literal value ("10" vs. "<10").

Is there a way around this?

Thank you for your time.




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
Number to words literal JCP Excel Worksheet Functions 12 August 22nd 08 05:18 PM
Literal quotation marks retained from a formula Chappy Excel Discussion (Misc queries) 3 February 5th 08 04:17 AM
How to use literal quotes with concatenation schieb Excel Discussion (Misc queries) 2 February 3rd 06 09:49 PM
formula is displayed as literal text instead of formula result carlossaltz Excel Discussion (Misc queries) 2 July 1st 05 09:26 PM
Referencing Literal Arrays Vic Sowers Excel Worksheet Functions 2 May 24th 05 12:50 AM


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