#1   Report Post  
Posted to microsoft.public.excel.misc
samprince
 
Posts: n/a
Default If, Logical Values.


I have one column, with dates in *50,000 over a month.

I want to create another column in column D which enters a value Yes or
No depending on what date corresponds in Column A

I would usually use
=IF(A9="01/05/2006","Yes","No") to get a Yes in Column D

However; I want to have multiple dates in this Formula,

and I can't get dates to work with 'IF' Formulas.

So If for instance I wanted a yes in Column D for all dates 01/05/06,
03/05/06 & 16/05/06 what would the formula. A 'No' would be the value
inserted for any other date.

Thanks.


--
samprince
------------------------------------------------------------------------
samprince's Profile: http://www.excelforum.com/member.php...o&userid=34168
View this thread: http://www.excelforum.com/showthread...hreadid=551935

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bearacade
 
Posts: n/a
Default If, Logical Values.


=IF(OR(A2="01/05/2006",A2="03/05/2006",A2="16/05/2006"),"Yes", "No")


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=551935

  #3   Report Post  
Posted to microsoft.public.excel.misc
Allllen
 
Posts: n/a
Default If, Logical Values.

Hi samprince

I think your problem was with the OR part, so how about this

=IF(OR(A9="01/05/2006",A9="03/05/06",A9="16/05/06"),"Yes","No")

If you are having problems with dates as texts, check out the DATEVALUE
function.
--
Allllen


"samprince" wrote:


I have one column, with dates in *50,000 over a month.

I want to create another column in column D which enters a value Yes or
No depending on what date corresponds in Column A

I would usually use
=IF(A9="01/05/2006","Yes","No") to get a Yes in Column D

However; I want to have multiple dates in this Formula,

and I can't get dates to work with 'IF' Formulas.

So If for instance I wanted a yes in Column D for all dates 01/05/06,
03/05/06 & 16/05/06 what would the formula. A 'No' would be the value
inserted for any other date.

Thanks.


--
samprince
------------------------------------------------------------------------
samprince's Profile: http://www.excelforum.com/member.php...o&userid=34168
View this thread: http://www.excelforum.com/showthread...hreadid=551935


  #4   Report Post  
Posted to microsoft.public.excel.misc
Paul Mathews
 
Posts: n/a
Default If, Logical Values.

=IF(OR(A9=Date(2006,5,1),A9=Date(2006,05,03),A9=Da te(2006,05,16)),"Yes","No")

"samprince" wrote:


I have one column, with dates in *50,000 over a month.

I want to create another column in column D which enters a value Yes or
No depending on what date corresponds in Column A

I would usually use
=IF(A9="01/05/2006","Yes","No") to get a Yes in Column D

However; I want to have multiple dates in this Formula,

and I can't get dates to work with 'IF' Formulas.

So If for instance I wanted a yes in Column D for all dates 01/05/06,
03/05/06 & 16/05/06 what would the formula. A 'No' would be the value
inserted for any other date.

Thanks.


--
samprince
------------------------------------------------------------------------
samprince's Profile: http://www.excelforum.com/member.php...o&userid=34168
View this thread: http://www.excelforum.com/showthread...hreadid=551935


  #5   Report Post  
Posted to microsoft.public.excel.misc
samprince
 
Posts: n/a
Default If, Logical Values.


Paul Mathews Wrote:[color=blue]
=IF(OR(A9=Date(2006,5,1),A9=Date(2006,05,03),A9=Da te(2006,05,16)),"Yes","No")

"samprince" wrote:



You Sir are a legend.



--
samprince
------------------------------------------------------------------------
samprince's Profile: http://www.excelforum.com/member.php...o&userid=34168
View this thread: http://www.excelforum.com/showthread...hreadid=551935



  #6   Report Post  
Posted to microsoft.public.excel.misc
respinosa
 
Posts: n/a
Default If, Logical Values.


I have a similiar question.

What I'm trying to accomplish is this, if I put the word Yes in cells
E16:E21, then E22 will total the numbers of Yes, Yes to Equal "1".
However, if No is put in cells E16:E21, the word "No" equals "-1" and
subtracts from the total in cell E22.

So the formula would read something like E22 is the total of Cells
E16:E21, where Yes=1, and No=-1

E16=Yes=1
E17=Yes=1
E18=No=-1
E19=No=-1
E20=Yes=1
E21=Yes=1
E22=Sum of E16:E21=2

I hope I explained this clearly!!


--
respinosa
------------------------------------------------------------------------
respinosa's Profile: http://www.excelforum.com/member.php...o&userid=35231
View this thread: http://www.excelforum.com/showthread...hreadid=551935

  #7   Report Post  
Posted to microsoft.public.excel.misc
respinosa
 
Posts: n/a
Default If, Logical Values.


respinosa Wrote:
I have a similiar question.

What I'm trying to accomplish is this, if I put the word Yes in cells
E16:E21, then E22 will total the numbers of Yes, Yes to Equal "1".
However, if No is put in cells E16:E21, the word "No" equals "-1" and
subtracts from the total in cell E22.

So the formula would read something like E22 is the total of Cells
E16:E21, where Yes=1, and No=-1

E16=Yes=1
E17=Yes=1
E18=No=-1
E19=No=-1
E20=Yes=1
E21=Yes=1
E22=Sum of E16:E21=2

I hope I explained this clearly!!


Ok I think I have it, but is there an easier way?
This is what I have in E22:
=IF(OR(E16="Yes"),"1","-1")+IF(OR(E17="Yes"),"1","-1")+IF(OR(E18="Yes"),"1","-1")+SUM(E16:E21)


--
respinosa
------------------------------------------------------------------------
respinosa's Profile: http://www.excelforum.com/member.php...o&userid=35231
View this thread: http://www.excelforum.com/showthread...hreadid=551935

  #8   Report Post  
Posted to microsoft.public.excel.misc
Bearacade
 
Posts: n/a
Default If, Logical Values.


=sum(countif(e16:e23,"yes")-countif(e16:e23,"no"))


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=551935

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
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
SUM for logical values tjtjjtjt Excel Discussion (Misc queries) 6 November 16th 05 01:30 AM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
#N/A Values : Returned by Formulas vs Entered Manually monir Charts and Charting in Excel 8 July 7th 05 01:16 AM
Adding logical values Veronique Excel Discussion (Misc queries) 1 January 13th 05 07:14 AM


All times are GMT +1. The time now is 02:55 PM.

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"