+ Reply to Thread
Results 1 to 6 of 6

need to copy the info from one cell if the info is different from the cells above.

  1. #1
    Registered User
    Join Date
    07-27-2011
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    need to copy the info from one cell if the info is different from the cells above.

    I have a worksheet with various information on it, i need to take one column that has the different cities and copy one of each city that is listed into a new sheet into column A, so that I can then count how many times one city is listed into column B.
    I have posted an example of what I am looking for the finished product to look like as well as what I currently have. I would like to have a formula that will take the information that is in Column A and if it is not already in Column B then insert it in the next available row.

    Thank you in advance for all your help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: need to copy the info from one cell if the info is different from the cells above.

    Hi,

    Sounds like you just need a Pivot Table. Select A:A in the sheet with your cities and then Insert>PivotTable>New Sheet. Add "City to the Row Labels and Count of City to the Values. Refresh the pivot table any time you add new cities.


    HTH

    Steve

  3. #3
    Registered User
    Join Date
    05-31-2012
    Location
    oman
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: need to copy the info from one cell if the info is different from the cells above.

    this help>>>

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: need to copy the info from one cell if the info is different from the cells above.

    see if the attached is what you need?
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    07-27-2011
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: need to copy the info from one cell if the info is different from the cells above.

    Thanks, I think that this will work.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: need to copy the info from one cell if the info is different from the cells above.

    you'r welcome. If this answered your question, please consider adding the reputation to those that helped

+ 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