Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default IF Function not working as I want

Hello,

So basically I have a spreadsheet with a lot of information on and I need to use an IF function to get a value for certain cells only. This is what I have got so far.

=IF(L182<2400,"=$M$180*H181/$B$255","0")

So L182 is the key cell. If this cell is between 0 and 2400 then it should be true, if not it should be false)

The true value I want to be this formula "=$M$180*H181/$B$255)"

M180 is just a value (8 in this case)

H181 is another value. I want this to change as I drag it down to 182, 183 etc but it is currently just staying as H181.

B255 is another value that has been generate using a SUMIF function using the same criteria as this IF function.

Any suggestions how I can make this work?
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by FooFighter616 View Post
Hello,

So basically I have a spreadsheet with a lot of information on and I need to use an IF function to get a value for certain cells only. This is what I have got so far.

=IF(L182<2400,"=$M$180*H181/$B$255","0")

So L182 is the key cell. If this cell is between 0 and 2400 then it should be true, if not it should be false)

The true value I want to be this formula "=$M$180*H181/$B$255)"

M180 is just a value (8 in this case)

H181 is another value. I want this to change as I drag it down to 182, 183 etc but it is currently just staying as H181.

B255 is another value that has been generate using a SUMIF function using the same criteria as this IF function.

Any suggestions how I can make this work?
Try getting rid of the quote marks and the equals in the middle of the formula.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default IF Function not working as I want

Hello,

Am Fri, 30 Mar 2012 15:40:08 +0000 schrieb FooFighter616:

=IF(L182<2400,"=$M$180*H181/$B$255","0")


try:
=IF(L182<2400,$M$180*H181/$B$255,0)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #4   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by Claus Busch View Post
Hello,

Am Fri, 30 Mar 2012 15:40:08 +0000 schrieb FooFighter616:

=IF(L182<2400,"=$M$180*H181/$B$255","0")


try:
=IF(L182<2400,$M$180*H181/$B$255,0)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Thank you!!!
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Cutting out a process

Hi,

Am Mon, 2 Apr 2012 09:37:01 +0000 schrieb FooFighter616:

Continuing on from this however, I now need to cut out a process.
Currently I have this formula "=IF(L181<2400,$M$180*H181/$B$255,0)". The
cell B255 contains the formula
"=SUMIF(L$181:L$234,"<2400",$H$181:$H$234)".

Basically, I want to cut out the cell B255 and have the whole thing in
one formula. Is this possible and how would I do this?


you have to replace $B$255 in the first formula with the formula into
B255:
=IF(L181<2400,$M$180*H181/SUMIF(L$181:L$234,"<2400",$H$181:$H$234),0)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
ISBLANK function not working when cell is blank dut to function re mcmilja Excel Discussion (Misc queries) 9 May 7th 23 03:43 AM
Function not working Loren Excel Discussion (Misc queries) 5 September 23rd 09 07:30 PM
UDF Function Not working jlclyde Excel Discussion (Misc queries) 7 February 17th 09 12:15 AM
Newly created Get Function is not working when I copied the syntax from a working function CJ Excel Programming 1 January 16th 07 05:28 AM
Working with Arrays, pasing from function to function mikebres Excel Programming 2 April 27th 06 06:33 PM


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