+ Reply to Thread
Results 1 to 8 of 8

Apply formula to all cells in column C for all populated cell in column A

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    New York
    MS-Off Ver
    2010
    Posts
    5

    Apply formula to all cells in column C for all populated cell in column A

    I have a changing number of cells in column A and I need to have column C values equal a formula that uses the values in column A. So for every value in column A there will be a value in column C. I need to write this in vba and have it assigned to a macro button. I also need it to create a pivot table graph in another worksheet. Here is what I have so far:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Apply formula to all cells in column C for all populated cell in column A

    Try:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-18-2014
    Location
    New York
    MS-Off Ver
    2010
    Posts
    5

    Re: Apply formula to all cells in column C for all populated cell in column A

    That is able to put values into cells in column C but they are not correct. They should show up at dates mm/dd/yyyy but instead I am getting numbers like this: 41782. The date for this example is: 5/23/14 12:19:05:439 EDT. Thank you

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Apply formula to all cells in column C for all populated cell in column A

    Hi, I think the values are probably correct but you need to change the format of column C to display them as dates. for example,
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-18-2014
    Location
    New York
    MS-Off Ver
    2010
    Posts
    5

    Re: Apply formula to all cells in column C for all populated cell in column A

    I get a runtime error that say error 483.

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Apply formula to all cells in column C for all populated cell in column A

    Sorry, I misspelt numberformat

  7. #7
    Registered User
    Join Date
    06-18-2014
    Location
    New York
    MS-Off Ver
    2010
    Posts
    5

    Re: Apply formula to all cells in column C for all populated cell in column A

    Works perfectly, Thank you. I should've seen that... Too much just blindly copying and pasting without reviewing!

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Apply formula to all cells in column C for all populated cell in column A

    Change this: .Numberfomat = "dd/mm/yyyy"

    To this: .Numberformat = "dd/mm/yyyy"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Divide a Cell by the number of populated cells in a column
    By MATU70 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-11-2014, 06:49 AM
  2. Replies: 11
    Last Post: 04-11-2013, 10:56 AM
  3. Replies: 9
    Last Post: 06-08-2012, 06:22 PM
  4. apply formula to all cells in a column
    By houston in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-26-2007, 05:03 PM
  5. [SOLVED] How to apply a formula to all cells in a column
    By Gillian White in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-29-2006, 04:10 PM

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