+ Reply to Thread
Results 1 to 8 of 8

Insert a value in Column "C" based on the Total in Column "A"

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Insert a value in Column "C" based on the Total in Column "A"

    Hi All,

    i need to know if its possible and if it is possible can someone help with the following....

    Is it possible to have the code to add up the number of rows in say COLUMN A then in the same code insert,copy or whatever a certain"Word" into column C based on the answer given by the total rows in Column A

    I Hope this is possible it would be really awsome if someone could help or even think of a better way of doing it

    thanks again

    regards

    Matt


    -------------------

    See attached Example.xlsm

    you will see in cokumn A "vendorID" the information has been filled in. and what i would like is for some VBA code to Add up the number of rows in "Vendor ID" and then put that number asside and then use the total of the number to insert a word that many times into Collumn I and Column O
    Attached Files Attached Files
    Last edited by Matthew_12345; 09-21-2011 at 11:53 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    re: Insert a value in Column "C" based on the Total in Column "A"

    Hello Matthew_12345,

    Welcome to the Forum!


    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

    To Attach a File:
    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    09-20-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    re: Insert a value in Column "C" based on the Total in Column "A"

    i need some help please

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    re: Insert a value in Column "C" based on the Total in Column "A"

    Hello Matt,

    Based on the workbook you posted, can you give me an example what you expect to see?

  5. #5
    Registered User
    Join Date
    09-20-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    re: Insert a value in Column "C" based on the Total in Column "A"

    Hey mate,

    see attached Example.jpg
    Attached Images Attached Images

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    re: Insert a value in Column "C" based on the Total in Column "A"

    Hello Matt,

    Does the user input the word or is it in a specific cell?

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    re: Insert a value in Column "C" based on the Total in Column "A"

    Hello Matt,

    This macro will fill in the codes with what is in the first row down to the last non empty cell in column "A".

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-20-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    re: Insert a value in Column "C" based on the Total in Column "A"

    thanks so much works a wonder

    your a champ thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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