Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-08-2009, 11:51 AM
blazzercat blazzercat is offline Syntax help needed Windows XP Syntax help needed Office 2003
Novice
Syntax help needed
 
Join Date: Apr 2009
Posts: 4
blazzercat is on a distinguished road
Default Syntax help needed

I need help with the following syntax:



If A3 is not blank and C3 has an X display the contents of N3 otherwise display 0.

Thanks again
Reply With Quote
  #2  
Old 07-09-2009, 02:19 AM
boutells boutells is offline Syntax help needed Windows Vista Syntax help needed Office 2007
Novice
 
Join Date: May 2009
Posts: 24
boutells is on a distinguished road
Default

=IF(A3="",0,IF(C3="X",N3,0))

There ought to be a way in Excel to do "if and" statements as in Visual Basic but I can't find them so in their absence, you have to use double if statements.

Could also be written

=If(A3<>"",IF(C3="X",N3,0),0)
Reply With Quote
  #3  
Old 07-09-2009, 09:44 AM
boutells boutells is offline Syntax help needed Windows Vista Syntax help needed Office 2007
Novice
 
Join Date: May 2009
Posts: 24
boutells is on a distinguished road
Default Found the and syntax

Try =IF(AND(A3<>"",C3="X"),+N3,0)
Reply With Quote
  #4  
Old 07-09-2009, 02:15 PM
blazzercat blazzercat is offline Syntax help needed Windows XP Syntax help needed Office 2003
Novice
Syntax help needed
 
Join Date: Apr 2009
Posts: 4
blazzercat is on a distinguished road
Default

Thanks works great.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax help needed Help needed :) thechief55 PowerPoint 1 04-28-2009 01:25 PM
Tips needed on posting an Outlook Calendar on our Website. misterbob Outlook 1 07-28-2006 03:18 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft