#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 62
Default Date formula

In column C I have a list of dates (8/16/2007), I want to right a formula in
column A that would return just the month and year (OCT07). Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 364
Default Date formula

"Scott@CW" wrote in message
...
In column C I have a list of dates (8/16/2007), I want to right a formula
in
column A that would return just the month and year (OCT07). Is this
possible?


A1 could just contain
=C1
and be formatted as MMM YY


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Date formula

Try

=C1 in A1 and drag down as required then apply a custom format of
mmmyy

Mike

"Scott@CW" wrote:

In column C I have a list of dates (8/16/2007), I want to right a formula in
column A that would return just the month and year (OCT07). Is this possible?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 62
Default Date formula

That worked great for the format problem, but I have created another
problem. I am using a sumproduct formula, and it is not recognizing the date.
Below is the formula I am using.

=sumproduct(--(A10:A500=c1),--(C10:C500=c2),--(F10:F500=5))

C1= name from A DV list
C2= dates from a DV list (dates in list are same format as orginal question
ex. Aug-07)

"Mike H" wrote:

Try

=C1 in A1 and drag down as required then apply a custom format of
mmmyy

Mike

"Scott@CW" wrote:

In column C I have a list of dates (8/16/2007), I want to right a formula in
column A that would return just the month and year (OCT07). Is this possible?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 364
Default Date formula

It sounds like your 'dates' (e.g. C2, C10:C500) are not dates at all, but
text strings (e.g. "Aug-07").
So instead of the formula =C1 and formatting of mmm-yy you could try the
formula
=TEXT(C1,"mmm-yy")

"Scott@CW" wrote in message
...
That worked great for the format problem, but I have created another
problem. I am using a sumproduct formula, and it is not recognizing the
date.
Below is the formula I am using.

=sumproduct(--(A10:A500=c1),--(C10:C500=c2),--(F10:F500=5))

C1= name from A DV list
C2= dates from a DV list (dates in list are same format as orginal
question
ex. Aug-07)

"Mike H" wrote:

Try

=C1 in A1 and drag down as required then apply a custom format of
mmmyy

Mike

"Scott@CW" wrote:

In column C I have a list of dates (8/16/2007), I want to right a
formula in
column A that would return just the month and year (OCT07). Is this
possible?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Date formula

Try it like this:
=SUMPRODUCT(--(A10:A500=C1),--(TEXT(C10:C500,"mmmyy")=TEXT(C2,"mmmyy")),--(F10:F500=5))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Scott@CW" wrote:
.. sumproduct formula, and it is not recognizing the date.
Below is the formula I am using.
=sumproduct(--(A10:A500=c1),--(C10:C500=c2),--(F10:F500=5))

C1= name from A DV list
C2= dates from a DV list (dates in list are same format as orginal question
ex. Aug-07)


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
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM
formula to calculate future date from date in cell plus days Chicesq Excel Worksheet Functions 8 November 3rd 05 12:25 PM


All times are GMT +1. The time now is 08:40 PM.

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

About Us

"It's about Microsoft Excel"