+ Reply to Thread
Results 1 to 5 of 5

Need help on formatting a census...

  1. #1
    Registered User
    Join Date
    02-21-2017
    Location
    New Jersey
    MS-Off Ver
    MS Office 360
    Posts
    3

    Need help on formatting a census...

    Greetings to all!
    I've a large census with hundreds of entries. If this were a small listing, I would manually adjust the information. Since it is so large, and needs to be turned in by morning, I'm seeking your help. We usually receive the data formatted in columns with name, date of birth, gender, etc., listed straight across in a row. In this instance, there are multiple rows for each individual, rather than having all the data laid out horizontally for each person.

    This is what it looks like:
    Original.JPG

    This is how it needs to be:
    End Result.JPG

    Hoping you can advise a simple and easy fix for this. I am not very tech savvy. Thanking you in advance for your time and kind assistance in this matter!
    Attached Images Attached Images
    Last edited by DCA_2017; 02-21-2017 at 11:45 PM.

  2. #2
    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,926

    Re: Need help on formatting a census...

    Hi, welcome to the forum

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    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

  3. #3
    Registered User
    Join Date
    02-21-2017
    Location
    New Jersey
    MS-Off Ver
    MS Office 360
    Posts
    3

    Re: Need help on formatting a census...

    Hello, FDibbins!

    While I manually edited the actual census, it would be such a help to know how to get the results I need without it taking me 3.5 hours.

    As you suggested, I am uploading an Excel spreadsheet entitled "Excel Sample". Sheet 1 provides an example of how the information appears, and on Sheet 2 is the manual
    mock-up of the expected results.

    Hoping I was successful in uploading the spreadsheet. Thank you again for your assistance!!!
    Attached Files Attached Files

  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 2403
    Posts
    43,986

    Re: Need help on formatting a census...

    In column A, copied down:

    =IFERROR(INDEX('Sheet 1'!$A$2:$A$65,MATCH(0,INDEX(COUNTIF($A$1:$A1,'Sheet 1'!$A$2:$A$65),0),0)),"")

    In column B, copied across into column C and down:

    =IFERROR(INDEX('Sheet 1'!B$2:B$65,MATCH($A2,'Sheet 1'!$A$2:$A$65,0)),"")

    In Column D, copied across and down, an array formula:

    =IFERROR(INDEX('Sheet 1'!$E$2:$E$65,MATCH(1,('Sheet 1'!$A$2:$A$65=$A2)*('Sheet 1'!$D$2:$D$65='Sheet 2'!D$1),0)),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    02-21-2017
    Location
    New Jersey
    MS-Off Ver
    MS Office 360
    Posts
    3

    Re: Need help on formatting a census...

    Thank you, Glenn! I will give this a try and let you know. Appreciate your taking the time to reply! Enjoy the rest of your day!!!

+ 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] Macro to make copying cells automate,- an appeal for expert's advice!
    By Arty_1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-04-2014, 07:22 AM
  2. [SOLVED] Need your expert advice on a form created in Excel
    By Kin0823 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2014, 10:53 AM
  3. Complex VLOOK and/or Index formula question. Expert advice needed
    By GRDecker in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-13-2013, 01:21 PM
  4. Complex VLOOK and/or Index formula question. Expert advice needed
    By GRDecker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2013, 01:56 PM
  5. Replies: 0
    Last Post: 10-25-2006, 12:09 PM
  6. [SOLVED] linking workbooks - expert advice needed!
    By JillG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2006, 06:00 PM
  7. [SOLVED] Need Expert Advice
    By Rebecca in forum Excel General
    Replies: 3
    Last Post: 03-24-2005, 01:06 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