+ Reply to Thread
Results 1 to 8 of 8

Apply MONTH formula to entire column

  1. #1
    Registered User
    Join Date
    06-30-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Apply MONTH formula to entire column

    Hello, below is a sample of my excel sheet. The number of rows keep changing daily and the Month and year column has to be populated automatically as and when there is a new row inserted. I tried the formula =MONTH(A:A) and I paste it on the entire column. it works for rows with data but I also get 104,000 odd blank rows added to my excel because I pasted the formula on the entire column.

    Date Month year
    10/10/2009


    hanks much!
    Last edited by aspen_gal; 06-30-2009 at 01:44 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Apply MONTH formula to entire column

    Try

    =IF(A2="","",Month(A2)) copied down...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-30-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Apply MONTH formula to entire column

    Thank you, how do you want me to copy down? Select the entire column and paste?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Apply MONTH formula to entire column

    Select the cell you put that formula in.

    Click and hold the little black square at bottom right corner of the cell and drag down to the bottom of your list.

  5. #5
    Registered User
    Join Date
    06-30-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Apply MONTH formula to entire column

    Thank you. I tried doing that and it inserts several 1000s of rows with blank data. I have to do a PIVOT table based on this sheet and with several rows having a "" Im not sure how the PIVOT would work? I want the formula done only if there are valid rows with Date in my Sheet.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Apply MONTH formula to entire column


  7. #7
    Registered User
    Join Date
    06-30-2009
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Apply MONTH formula to entire column

    Thank you. I just created a pivot and looks like it is automatically ignoring the blanks!! Thanks a lot.

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Apply MONTH formula to entire column

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1