+ Reply to Thread
Results 1 to 3 of 3

compare two column(group by group, maybe?)

Hybrid View

mikehjun compare two column(group by... 08-29-2008, 06:41 PM
davesexcel Hi, Please supply a sample... 08-30-2008, 05:45 AM
mikehjun Here is the excel sheet! 09-02-2008, 04:23 PM
  1. #1
    Registered User
    Join Date
    08-29-2008
    Location
    Portland
    Posts
    2

    Question compare two column(group by group, maybe?)

    There is a table ‘Utility_Fee_Address‘ that address points are joined with buildings so in many cases there are several addresses on one building. Each address has special Land use code assigned by an engineer and it could be same or different in one building. What I want to do is to locate that the land use code of address point are different in one building so it populates in ‘D(differency)’ column like 1 is same and 2 is different.

    If there are 4 addresses has same landuse code in one building then call it 1 in D column and if there are 4 addresses has one different landuse code in one builing then call it 2.

    First you need to look at B (building id) and then among the same building unique id, you need to look at the land use code and see if there is any differency of its value, I called this loop within a loop.


    So the final attribute table looks like below(A:Address,L: landuse, B: bldg id, D: Different Yes No)
    A L B D
    1 1 1 1
    2 1 1 1
    3 2 2 2
    4 1 2 2
    5 5 3 1
    6 5 3 1
    7 5 3 1
    8 8 4 2
    9 7 4 2


    Please help me out. There are a couple of thousand records to look at it. This script makes my job much easier.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Hi,
    Please supply a sample workbook, showing the original layout, then the desired result.

  3. #3
    Registered User
    Join Date
    08-29-2008
    Location
    Portland
    Posts
    2

    Smile Here is the excel sheet!

    Please take a look at the excel and let me know if you can figure it out.

    Thanks a lot!
    Attached Files Attached Files

+ 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. Help With Sheet Compare Marco I Trying To Use
    By gaspower in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2008, 12:50 PM
  2. automatic column fill Question
    By mpolox in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2008, 10:28 AM
  3. Group Data By Day Question
    By mcarrigg in forum Excel General
    Replies: 4
    Last Post: 03-05-2008, 07:09 PM
  4. Compare Macro
    By gaspower in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-28-2008, 06:37 PM
  5. Number combinations
    By MC82 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-10-2007, 09:04 PM

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