Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   General IT Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=19)
-   -   Excel help please (https://www.cableforum.uk/board/showthread.php?t=27449)

Janusian 19-04-2005 10:06

Excel help please
 
I need some help with Excel. I have a cell which contains a calculation, but I need it to default to a minimum value if the calculation does not generate enough

Here is the cell formula

Code:

=(E11*0.00025)+(E12*0.0004)+(E11/52*0.025)+(E12/52*0.04)
But I need this to default to 500, if the values entered into cells E11 and E12 do not generate 500 as a result.

I tried searching Excel help, but to no avail.

Nemesis 19-04-2005 10:10

Re: Excel help please
 
Do the calculation in a different cell ... then

use If ... then referencing that cell to check is it's lower than 500, if so set your cell to 500, if not use the cell you did the calculation in.

=IF(A1<500,500,A1)

A1 being the cell you did the calculation in

Janusian 19-04-2005 10:17

Re: Excel help please
 
I knew that someone would know - thanks for your prompt response

philip.j.fry 19-04-2005 10:38

Re: Excel help please
 
Is there not a ceiling function in Excel?

SMHarman 19-04-2005 10:39

Re: Excel help please
 
Or nest the calculation you want to do where the A1 is in the example so you would put the whole calculation inside brackets.

MetaWraith 19-04-2005 10:43

Re: Excel help please
 
TIP : If you put the intermediate cell (see Nem's example) in a separate row, you can then hide it completely

PC_Arcade 19-04-2005 11:00

Re: Excel help please
 
You could do it in one fell swoop though :)
=IF((E11*0.00025)+(E12*0.0004)+(E11/52*0.025)+(E12/52*0.04)<500,500,A1)

Nemesis 19-04-2005 11:01

Re: Excel help please
 
Quote:

Originally Posted by PC_Arcade
You could do it in one fell swoop though :)
=IF((E11*0.00025)+(E12*0.0004)+(E11/52*0.025)+(E12/52*0.04)<500,500,A1)

I knew that .... but as it looked complicated, I broke it down. The OP didn't seem too sure about formulas.

PC_Arcade 19-04-2005 11:06

Re: Excel help please
 
I'm sure you did, I wasn't trying to devalue your answer :)


All times are GMT. The time now is 03:15.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum