ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Need help with and "IF" statement - ASAP (https://www.excelbanter.com/excel-discussion-misc-queries/105036-need-help-if-statement-asap.html)

iasiddiqui

Need help with and "IF" statement - ASAP
 

Hello,

I need to write an IF statement. Basically, I want cell A21 = D4
*-if-* a value is present in it. If D4 is blank, then A21 should = D7.
How would I set this up?


--
iasiddiqui
------------------------------------------------------------------------
iasiddiqui's Profile: http://www.excelforum.com/member.php...o&userid=37543
View this thread: http://www.excelforum.com/showthread...hreadid=571803


oldchippy

Need help with and "IF" statement - ASAP
 

iasiddiqui Wrote:
Hello,

I need to write an IF statement. Basically, I want cell A21 = D4
*-if-* a value is present in it. If D4 is blank, then A21 should = D7.
How would I set this up?


Hi iasiddiqui,

Try this,

=IF(D40,D4,D7)

oldchippy :)

Sorry try this instead

=IF(D4=ISBLANK(D4),D4,D7)


--
oldchippy
------------------------------------------------------------------------
oldchippy's Profile: http://www.excelforum.com/member.php...o&userid=19907
View this thread: http://www.excelforum.com/showthread...hreadid=571803


Toppers

Need help with and "IF" statement - ASAP
 
=IF(D4<"",A21,D7)

"iasiddiqui" wrote:


Hello,

I need to write an IF statement. Basically, I want cell A21 = D4
*-if-* a value is present in it. If D4 is blank, then A21 should = D7.
How would I set this up?


--
iasiddiqui
------------------------------------------------------------------------
iasiddiqui's Profile: http://www.excelforum.com/member.php...o&userid=37543
View this thread: http://www.excelforum.com/showthread...hreadid=571803



Toppers

Need help with and "IF" statement - ASAP
 
...oops ...

=IF(D4<"",D4,D7)

"Toppers" wrote:

=IF(D4<"",A21,D7)

"iasiddiqui" wrote:


Hello,

I need to write an IF statement. Basically, I want cell A21 = D4
*-if-* a value is present in it. If D4 is blank, then A21 should = D7.
How would I set this up?


--
iasiddiqui
------------------------------------------------------------------------
iasiddiqui's Profile: http://www.excelforum.com/member.php...o&userid=37543
View this thread: http://www.excelforum.com/showthread...hreadid=571803



iasiddiqui

Need help with and "IF" statement - ASAP
 

no, neither is working


--
iasiddiqui
------------------------------------------------------------------------
iasiddiqui's Profile: http://www.excelforum.com/member.php...o&userid=37543
View this thread: http://www.excelforum.com/showthread...hreadid=571803


iasiddiqui

Need help with and "IF" statement - ASAP
 

let me clarify:

A21 = D4 only if D4 contains a value. If D4 is blank, then A21 = D7.


--
iasiddiqui
------------------------------------------------------------------------
iasiddiqui's Profile: http://www.excelforum.com/member.php...o&userid=37543
View this thread: http://www.excelforum.com/showthread...hreadid=571803


iasiddiqui

Need help with and "IF" statement - ASAP
 

thank you very much, that worked!!!


--
iasiddiqui
------------------------------------------------------------------------
iasiddiqui's Profile: http://www.excelforum.com/member.php...o&userid=37543
View this thread: http://www.excelforum.com/showthread...hreadid=571803



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

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