ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF function won't post cell value (https://www.excelbanter.com/excel-discussion-misc-queries/110974-if-function-wont-post-cell-value.html)

Loren

IF function won't post cell value
 
Trying to get this to work:

IF cell C4=0 then post cell F4 value IF cells C4 and F4
are both 0 then post cell I4's value.

=IF(C4=0,F4, IF(C4=0,F4=0,I4))

If C4 is 0 and F4 has a value it will post F4's value but if both C4 and F4
are 0 all it will post in I4 is 0 not I4's value.
--
Loren

Kevin B

IF function won't post cell value
 
See if this does the trick for you:

=IF(AND(C4=0,F40),F4,IF(AND(C4=0,F4=0),I4,0))
--
Kevin Backmann


"Loren" wrote:

Trying to get this to work:

IF cell C4=0 then post cell F4 value IF cells C4 and F4
are both 0 then post cell I4's value.

=IF(C4=0,F4, IF(C4=0,F4=0,I4))

If C4 is 0 and F4 has a value it will post F4's value but if both C4 and F4
are 0 all it will post in I4 is 0 not I4's value.
--
Loren


Dave F

IF function won't post cell value
 
Try: =IF(C4=0,F4,IF(AND(C4=0,F4=0,I4)))

"IF C4= 0, THEN F4, ELSE IF C4 = 0 AND F4 = 0, THEN I4"

Dave
--
Brevity is the soul of wit.


"Loren" wrote:

Trying to get this to work:

IF cell C4=0 then post cell F4 value IF cells C4 and F4
are both 0 then post cell I4's value.

=IF(C4=0,F4, IF(C4=0,F4=0,I4))

If C4 is 0 and F4 has a value it will post F4's value but if both C4 and F4
are 0 all it will post in I4 is 0 not I4's value.
--
Loren



All times are GMT +1. The time now is 12:45 AM.

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