Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default return date from range of dates with if statement

I want to search a column that has dates in it like 1/31/2009, 2/28/2009,
3/31/2009, etc. If the date matches a date somewhere else on a sheet I want
it to do something if true and something else if false. I will tell the sheet
what date in B1 and if it finds it

I came up with:
=IFERROR(IF(INDEX(A1:A12,MATCH(B1,A1:A12,0))=B1,"T RUE","FALSE"),"0")

but thiis seems too complicated for what I am asking for.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default return date from range of dates with if statement

Hi,

Try this

=if(countif(A1:A12,B1)0,"do this","do that")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Joe" wrote in message
...
I want to search a column that has dates in it like 1/31/2009, 2/28/2009,
3/31/2009, etc. If the date matches a date somewhere else on a sheet I
want
it to do something if true and something else if false. I will tell the
sheet
what date in B1 and if it finds it

I came up with:
=IFERROR(IF(INDEX(A1:A12,MATCH(B1,A1:A12,0))=B1,"T RUE","FALSE"),"0")

but thiis seems too complicated for what I am asking for.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default return date from range of dates with if statement

This is simpler. Thank you.

"Ashish Mathur" wrote:

Hi,

Try this

=if(countif(A1:A12,B1)0,"do this","do that")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Joe" wrote in message
...
I want to search a column that has dates in it like 1/31/2009, 2/28/2009,
3/31/2009, etc. If the date matches a date somewhere else on a sheet I
want
it to do something if true and something else if false. I will tell the
sheet
what date in B1 and if it finds it

I came up with:
=IFERROR(IF(INDEX(A1:A12,MATCH(B1,A1:A12,0))=B1,"T RUE","FALSE"),"0")

but thiis seems too complicated for what I am asking for.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default return date from range of dates with if statement

You are welcome.

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Joe" wrote in message
...
This is simpler. Thank you.

"Ashish Mathur" wrote:

Hi,

Try this

=if(countif(A1:A12,B1)0,"do this","do that")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Joe" wrote in message
...
I want to search a column that has dates in it like 1/31/2009,
2/28/2009,
3/31/2009, etc. If the date matches a date somewhere else on a sheet I
want
it to do something if true and something else if false. I will tell the
sheet
what date in B1 and if it finds it

I came up with:
=IFERROR(IF(INDEX(A1:A12,MATCH(B1,A1:A12,0))=B1,"T RUE","FALSE"),"0")

but thiis seems too complicated for what I am asking for.



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
return a date from range, date is between dates in two other cells NN Excel Discussion (Misc queries) 1 September 28th 06 10:05 PM
Return a value for a range of dates Waters Excel Worksheet Functions 1 May 27th 06 03:18 AM
return based on range of dates Matt Excel Worksheet Functions 6 February 15th 06 08:36 PM
formula to look up and return smallest date from a range of dates BJ Excel Worksheet Functions 5 December 7th 05 10:35 PM
Return range of values on an "IF" statement KelleyS Excel Worksheet Functions 0 June 1st 05 08:32 PM


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