#1   Report Post  
Posted to microsoft.public.excel.misc
pls pls is offline
external usenet poster
 
Posts: 6
Default Formula Help

I'm trying to pull only the month from a date in cell A-1 and display it in
the adjacent cell. when using the formula =LEFT(A1,FIND("/",A1)-1)
i am getting a # value! error. if i go through the solver macro, the
formula is solving the date entered in cell A-1 as a number, rather than a
date. A-1 is formatted to display a date.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Formula Help

use

=MONTH(A1)

A1 is held in date format (and internally as a number) so you cannot use
your formula.

"pls" wrote:

I'm trying to pull only the month from a date in cell A-1 and display it in
the adjacent cell. when using the formula =LEFT(A1,FIND("/",A1)-1)
i am getting a # value! error. if i go through the solver macro, the
formula is solving the date entered in cell A-1 as a number, rather than a
date. A-1 is formatted to display a date.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Formula Help

Try =MONTH(A1)

Hope this helps,

Hutch

"pls" wrote:

I'm trying to pull only the month from a date in cell A-1 and display it in
the adjacent cell. when using the formula =LEFT(A1,FIND("/",A1)-1)
i am getting a # value! error. if i go through the solver macro, the
formula is solving the date entered in cell A-1 as a number, rather than a
date. A-1 is formatted to display a date.

  #4   Report Post  
Posted to microsoft.public.excel.misc
pls pls is offline
external usenet poster
 
Posts: 6
Default Formula Help

i should have known it would have been that easy... thanks guys.

"Tom Hutchins" wrote:

Try =MONTH(A1)

Hope this helps,

Hutch

"pls" wrote:

I'm trying to pull only the month from a date in cell A-1 and display it in
the adjacent cell. when using the formula =LEFT(A1,FIND("/",A1)-1)
i am getting a # value! error. if i go through the solver macro, the
formula is solving the date entered in cell A-1 as a number, rather than a
date. A-1 is formatted to display a date.

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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