+ Reply to Thread
Results 1 to 4 of 4

Put items in different columns (group several rows with same contact id)

Hybrid View

mcfarris Put items in different... 12-03-2014, 09:01 AM
Glenn Kennedy Re: Put items in different... 12-03-2014, 09:10 AM
mcfarris Re: Put items in different... 12-03-2014, 09:41 AM
Glenn Kennedy Re: Put items in different... 12-03-2014, 09:48 AM
  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    NL
    MS-Off Ver
    2013
    Posts
    6

    Put items in different columns (group several rows with same contact id)

    First an example:
    testbook.xlsx

    I have an extracted database file from our (soon to be) old CRM software. I want to put this in a SQL database where I want to divide the number column (wehre every kind of number resides) over dedicated columns per number (mobile, direct, office, etc).

    I thought about a Pivot Table but a pivot table cant display the value of the table, only SUM, MAX, etc.

    Does someone can give me a keyword or push in the right direction?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Put items in different columns (group several rows with same contact id)

    Hi there. Use the Array-Entered formula, below, as shown in the attached sheet.

    Formula: copy to clipboard
    =IFERROR(INDEX($C$2:$C$9,MATCH(1,($A15=$A$2:$A$9)*(C$14=$D$2:$D$9),0)),"")


    An Array formula isconfirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Drag across & down, as needed.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 12-03-2014 at 09:11 AM. Reason: No attachment first time...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    07-04-2014
    Location
    NL
    MS-Off Ver
    2013
    Posts
    6

    Re: Put items in different columns (group several rows with same contact id)

    Wonderful! altough I had to edit your forumula; it must check de Contacts ID column instead of the ID.
    Formula: copy to clipboard
    =IFERROR(INDEX($C$2:$C$9,MATCH(1,($B15=$B$2:$B$9)*(C$14=$D$2:$D$9),0)),"")


    Worked perfect!!

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Put items in different columns (group several rows with same contact id)

    Yes, I was matching against IDs, not contracts.

+ 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. How can I group data by columns as well as rows?
    By Motox in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-23-2014, 01:53 AM
  2. Replies: 1
    Last Post: 02-10-2014, 10:26 PM
  3. [SOLVED] Address and contact info from columns to rows
    By pschwartzkopf in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-22-2013, 07:35 PM
  4. [SOLVED] Group consecutive rows with value = 0 in multiple columns
    By scott.s.fower in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2012, 03:53 PM
  5. to convert columns to rows having mulit independent group columns
    By Quacy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2006, 06:25 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