Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default If - Then question

How would I write a formula to handle this problem?
If the value in cell D20 is €˜U18 then the result in cell D6 is a €˜0
however if the value in D20 is anything else then the result in cell D6 is
the value in N5

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If - Then question

Try this entered in D6:

=IF(D20="U18",0,N5)

Or:

Assuming N5 is a numeric value.

=(D20<"U18")*N5

--
Biff
Microsoft Excel MVP


"Ksean" wrote in message
...
How would I write a formula to handle this problem?
If the value in cell D20 is 'U18' then the result in cell D6 is a '0'
however if the value in D20 is anything else then the result in cell D6 is
the value in N5



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 55
Default If - Then question

I went with your second option and it worked great!

Thanks.


"T. Valko" wrote:

Try this entered in D6:

=IF(D20="U18",0,N5)

Or:

Assuming N5 is a numeric value.

=(D20<"U18")*N5

--
Biff
Microsoft Excel MVP


"Ksean" wrote in message
...
How would I write a formula to handle this problem?
If the value in cell D20 is 'U18' then the result in cell D6 is a '0'
however if the value in D20 is anything else then the result in cell D6 is
the value in N5



.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If - Then question

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Ksean" wrote in message
...
I went with your second option and it worked great!

Thanks.


"T. Valko" wrote:

Try this entered in D6:

=IF(D20="U18",0,N5)

Or:

Assuming N5 is a numeric value.

=(D20<"U18")*N5

--
Biff
Microsoft Excel MVP


"Ksean" wrote in message
...
How would I write a formula to handle this problem?
If the value in cell D20 is 'U18' then the result in cell D6 is a '0'
however if the value in D20 is anything else then the result in cell D6
is
the value in N5



.



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
Question 1 of ??? Connie Martin Excel Worksheet Functions 3 August 9th 08 11:28 PM
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
VB Question Stan Excel Discussion (Misc queries) 1 April 26th 07 03:59 AM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"