ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   If Function Help (https://www.excelbanter.com/excel-discussion-misc-queries/95643-if-function-help.html)

Duncan, UK

If Function Help
 
I am trying to create a function that relates to whether a cell is higher or
lower than a value.
What I want is if G123<5000 then the cell shows the content of B10, but if
G1234999 then the cell shows the content of A124.
I can do the first bit eg =if(g123<5000,B10) but cannot add the second
argument.
Any ideas please?
Regards
Duncan


robert111

If Function Help
 

all if statements require 2 parts, the true and the false

if(a1<10,a2,a3)

so if a1 is 9 or less it returns a2, but if 10 or more it returns
a3


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=554899


Duncan, UK

If Function Help
 
Great thanks, that works

Duncan

"robert111" wrote:


all if statements require 2 parts, the true and the false

if(a1<10,a2,a3)

so if a1 is 9 or less it returns a2, but if 10 or more it returns
a3


--
robert111
------------------------------------------------------------------------
robert111's Profile: http://www.excelforum.com/member.php...o&userid=31996
View this thread: http://www.excelforum.com/showthread...hreadid=554899




All times are GMT +1. The time now is 10:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com