Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default 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


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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

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
Can I use "In" in an "If" statement? mbrockhaus Excel Discussion (Misc queries) 3 June 29th 06 11:57 PM
"IF" statement & "strikethrough" formatting jijy Excel Worksheet Functions 3 March 22nd 06 06:56 PM
"IF" "AND" Statement Portuga Excel Discussion (Misc queries) 4 January 31st 06 04:48 PM
help needed with "if" statement gina_b Excel Worksheet Functions 2 December 30th 05 04:24 PM
"If" statement using "And" Amanda Excel Discussion (Misc queries) 2 December 28th 05 03:02 PM


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