PC Review


Reply
Thread Tools Rate Thread

Conditional Statement in Excel

 
 
Wendy.Craigg@gmail.com
Guest
Posts: n/a
 
      1st Jun 2007
Hi,

I'm trying to create an if statement that whenever the user selects
"Debit Memo" from the dropdown menu in column A (has other items--
Credit Memo Check, Transfer), the user would be forced to enter the
corresponding value in column F (Debit). If the user attempts to
enter the value in Column G (Credit)column, an error message would be
generated "Incorrect Account".

Grateful for any assistance in resolving this matter.


WC

 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      1st Jun 2007
One way:

Select your cells in Column G (say, G2:G100, with G2 the active cell).
Choose Data/Validation, and enter

Allow: Custom
Formula: =$B2="Credit Memo"

Uncheck the Ignore Blanks checkbox. Similarly, in column F, use

=$B2="Debit Memo"

If more than one value in column B is acceptable for a column G entry,
use OR(), e.g.:

=OR($B2="Credit Memo",$B2="Transfer")

In article <(E-Mail Removed)>,
(E-Mail Removed) wrote:

> Hi,
>
> I'm trying to create an if statement that whenever the user selects
> "Debit Memo" from the dropdown menu in column A (has other items--
> Credit Memo Check, Transfer), the user would be forced to enter the
> corresponding value in column F (Debit). If the user attempts to
> enter the value in Column G (Credit)column, an error message would be
> generated "Incorrect Account".
>
> Grateful for any assistance in resolving this matter.
>
>
> WC

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Excel Conditional Statement Help Bernie Deitrick Microsoft Excel Worksheet Functions 0 8th Jan 2007 04:56 PM
Using query results within Conditional Statement...sequenced conditional queries rafael.farias.jr@gmail.com Microsoft Access 3 30th Aug 2006 02:08 PM
How do I write a conditional statement in Excel to count if two c. =?Utf-8?B?bWFyYmxlbGlmZQ==?= Microsoft Excel Worksheet Functions 2 16th Jan 2005 11:16 PM
Excel Conditional statement ron Microsoft Excel Programming 1 19th Apr 2004 11:14 PM
Excel VBA-conditional statement Marissa O Microsoft Excel Worksheet Functions 2 17th Mar 2004 09:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:00 PM.