#1   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."






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 12:09 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"