#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Formula Question

I have exported a report from Access to Excel 2003 ... I have two questions
which would make my life much easier.

One - the date field is formatted mm/dd/yyyy - I believe since it was from
Access I am unable to format it differently as when I go to change date
format it does not work. The end result I am looking for is to record the
year from the date field and populate a separate cell with the year only in
it.

Two - the information is a list with various duplicate project ID's that i
have to count. For example, "If B2=x, count 1"


--
Alison
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default Formula Question

hi
1. when excel doesn't respond to number and date format changes, it's
usually because excel is seeing the data as text. try this.
in a cell off the the side, enter a 1. copy it. highlight the data and paste
special multipy.

2 =countif(b2:B500),"X") adjust to suit. you may need a formula for each
project you wish to count.

regards
FSt1

"Alison" wrote:

I have exported a report from Access to Excel 2003 ... I have two questions
which would make my life much easier.

One - the date field is formatted mm/dd/yyyy - I believe since it was from
Access I am unable to format it differently as when I go to change date
format it does not work. The end result I am looking for is to record the
year from the date field and populate a separate cell with the year only in
it.

Two - the information is a list with various duplicate project ID's that i
have to count. For example, "If B2=x, count 1"


--
Alison

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Formula Question

Thank you for the information -
I did as you suggested in Item # 1 and it returned as text vs. dates (is
there a next step? to get it back to dates so I can pull the year out
separately?

I will try Item # 2 now - I just needed the formula. I think I was close -
had the right idea, and yes I think I have to specify each project I want
counted.




--
Alison


"FSt1" wrote:

hi
1. when excel doesn't respond to number and date format changes, it's
usually because excel is seeing the data as text. try this.
in a cell off the the side, enter a 1. copy it. highlight the data and paste
special multipy.

2 =countif(b2:B500),"X") adjust to suit. you may need a formula for each
project you wish to count.

regards
FSt1

"Alison" wrote:

I have exported a report from Access to Excel 2003 ... I have two questions
which would make my life much easier.

One - the date field is formatted mm/dd/yyyy - I believe since it was from
Access I am unable to format it differently as when I go to change date
format it does not work. The end result I am looking for is to record the
year from the date field and populate a separate cell with the year only in
it.

Two - the information is a list with various duplicate project ID's that i
have to count. For example, "If B2=x, count 1"


--
Alison

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default Formula Question

HOW DO I ASK A QUESTION?

"Alison" wrote:

I have exported a report from Access to Excel 2003 ... I have two questions
which would make my life much easier.

One - the date field is formatted mm/dd/yyyy - I believe since it was from
Access I am unable to format it differently as when I go to change date
format it does not work. The end result I am looking for is to record the
year from the date field and populate a separate cell with the year only in
it.

Two - the information is a list with various duplicate project ID's that i
have to count. For example, "If B2=x, count 1"


--
Alison

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Formula Question

do you need to ask me a question? or generally?


--
Alison


"NANCY" wrote:

HOW DO I ASK A QUESTION?

"Alison" wrote:

I have exported a report from Access to Excel 2003 ... I have two questions
which would make my life much easier.

One - the date field is formatted mm/dd/yyyy - I believe since it was from
Access I am unable to format it differently as when I go to change date
format it does not work. The end result I am looking for is to record the
year from the date field and populate a separate cell with the year only in
it.

Two - the information is a list with various duplicate project ID's that i
have to count. For example, "If B2=x, count 1"


--
Alison



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Formula Question

Hi Nancy,

Click on the New drop down arrow and selection question. This link is just
under the Search For field at the top of the screen above the list of posts.

"NANCY" wrote:

HOW DO I ASK A QUESTION?

"Alison" wrote:

I have exported a report from Access to Excel 2003 ... I have two questions
which would make my life much easier.

One - the date field is formatted mm/dd/yyyy - I believe since it was from
Access I am unable to format it differently as when I go to change date
format it does not work. The end result I am looking for is to record the
year from the date field and populate a separate cell with the year only in
it.

Two - the information is a list with various duplicate project ID's that i
have to count. For example, "If B2=x, count 1"


--
Alison

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Formula Question

Hi Alison,

If the date is formatted as text, then:

=RIGHT(A1,4)*1

multiplying by one converts text to a number.

If you want to convert text mm/dd/yyyy to a number

=DATE(RIGHT(A1,4),LEFT(A1,2),MID(A1,4,2))

To count duplicate project ID's:

=COUNTIF(B2:B100,"X")

Hope this helps.

"Alison" wrote:

I have exported a report from Access to Excel 2003 ... I have two questions
which would make my life much easier.

One - the date field is formatted mm/dd/yyyy - I believe since it was from
Access I am unable to format it differently as when I go to change date
format it does not work. The end result I am looking for is to record the
year from the date field and populate a separate cell with the year only in
it.

Two - the information is a list with various duplicate project ID's that i
have to count. For example, "If B2=x, count 1"


--
Alison

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
Formula question Sarah Excel Worksheet Functions 2 December 3rd 07 11:17 PM
formula question Michelle Excel Discussion (Misc queries) 3 May 25th 07 08:02 PM
Formula Question Dave Excel Discussion (Misc queries) 2 May 22nd 06 06:22 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Formula Question - HELP LilJazzyLady Excel Discussion (Misc queries) 3 April 29th 06 12:38 AM


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