#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF formula

I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is 5,
if less than 150 then value is 0."
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default IF formula

=IF(A1=150,5,0)

--
Gary''s Student - gsnu200838


"Peekaboo012885" wrote:

I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is 5,
if less than 150 then value is 0."

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default IF formula

A2 contains "x"

=IF(OR(A2150,A2=150),5,0)

Peekaboo012885 wrote:

I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is 5,
if less than 150 then value is 0."


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default IF formula

Not really necessary to use OR.
You can change =IF(OR(A2150,A2=150),5,0) to =IF(A2=150,5,0)
--
David Biddulph

"Bob I" wrote in message
...
A2 contains "x"

=IF(OR(A2150,A2=150),5,0)

Peekaboo012885 wrote:

I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is
5, if less than 150 then value is 0."




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default IF formula

Thanks for the reminder.

David Biddulph wrote:

Not really necessary to use OR.
You can change =IF(OR(A2150,A2=150),5,0) to =IF(A2=150,5,0)
--
David Biddulph

"Bob I" wrote in message
...

A2 contains "x"

=IF(OR(A2150,A2=150),5,0)

Peekaboo012885 wrote:


I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is
5, if less than 150 then value is 0."







  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default IF formula

=IF(X=150,5,0)

It's better to use cell references. for example =IF(A1=150,5,0)

Thanks

"Peekaboo012885" wrote in message
...
I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is
5,
if less than 150 then value is 0."



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default IF formula

thanks for the replies but I just realized I didn't word my question
correctly...I'm looking to assign that formula but to a range of cells in a
column (k3 through k50), however I want the total of all in cell k51.

"Gaurav" wrote:

=IF(X=150,5,0)

It's better to use cell references. for example =IF(A1=150,5,0)

Thanks

"Peekaboo012885" wrote in message
...
I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is
5,
if less than 150 then value is 0."




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default IF formula

Perhaps you should rewrite the question in it's entirety as the
piecemeal approach is rather ambiguous.

Peekaboo012885 wrote:

thanks for the replies but I just realized I didn't word my question
correctly...I'm looking to assign that formula but to a range of cells in a
column (k3 through k50), however I want the total of all in cell k51.

"Gaurav" wrote:


=IF(X=150,5,0)

It's better to use cell references. for example =IF(A1=150,5,0)

Thanks

"Peekaboo012885" wrote in message
...

I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is
5,
if less than 150 then value is 0."





  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default IF formula

If in cell K51 you want the sum of K3 to K50, the formula in K51 is
=SUM(K3:K50)
If K3 to K50 is where you have your values that you want to test against
150, try =5*COUNTIF(K3:K50,"="&150)
--
David Biddulph

"Peekaboo012885" wrote in message
...
thanks for the replies but I just realized I didn't word my question
correctly...I'm looking to assign that formula but to a range of cells in
a
column (k3 through k50), however I want the total of all in cell k51.

"Gaurav" wrote:

=IF(X=150,5,0)

It's better to use cell references. for example =IF(A1=150,5,0)

Thanks

"Peekaboo012885" wrote in
message
...
I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value
is
5,
if less than 150 then value is 0."






  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default IF formula

If you want to check the value in A1, you could put this formula in B1:

=if(a1=150,5,0)



Peekaboo012885 wrote:

I'm trying to enter an IF formula but can't seem to get it written
correctly...what I want to do is " IF x is or = $150 then the value is 5,
if less than 150 then value is 0."


--

Dave Peterson


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



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