Closed Thread
Results 1 to 4 of 4

Re previous thread. Matching data to reference number

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Re previous thread. Matching data to reference number

    I used the code re previous thread http://www.excelforum.com/excel-gene...ce-number.html on another group of headings, spread sheet attached. However this one is on therapies given to a patient in a month, so one patient might have had several different treatments, but only one is showing.

    How can I get

    Month of treatment against each reference number
    what treatment/s a patient (reference number) has had and in what month and total number of treatments over the year
    total number of treatments given per month ie counselling, aromatherapy etc

    Thanks in advance.

    (therapies.xlsb

    Raised as a new thread as I couldn't upload new spreadsheet in previous thread)

  2. #2
    Forum Contributor
    Join Date
    01-25-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    434

    Re: Re previous thread. Matching data to reference number

    Hi

    Here are the steps I took to get this new file to have same layout as the Diagnosis file


    Create list of each therapies
    Select Sheet1 C1 : N1

    Select Sheet2 A2
    Paste Special, Values, Transpose


    Create column for Month
    Insert new column before Column O
    Title this new column as Month

    Put Month name on each row
    O3 formula is: =IF(Q3="","",IF(A3<>"",A3,O2))
    (copy and paste down to row 540)

    Put all data onto a new sheet

    Select all data from Sheet1 O1 : Q540
    Copy
    Select new sheet, Sheet3
    Select cell A1
    Paste Special, Values

    Put Drop-downs onto treatment column of new sheet

    Select Entire column C
    Data -> Data Validation -> Settings -> Allow: List, Source: =Sheet2!$A$2:$A$13

    Remove drop down from header
    Select C1:C2
    Data -> Data Validation -> Settings -> Allow: Any value


    Summarise the Data

    Select all data Sheet3!$A$1:$C$540 (or Sheet3!$A:$C , with no row numbers it will include new data that is added)
    Insert -> PivotTable -> Placed -> Existing Worksheet: Sheet3!$G$1

    Choose fields to add to report: Select All (Month, Reference Number, treatment)
    Row Labels: Month, treatment
    Drag Reference Number to Values (it then changes to Count of Reference Number)
    Attached Files Attached Files
    Last edited by ThirtyTwo; 04-03-2014 at 10:41 AM.

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Re previous thread. Matching data to reference number

    Hi, thank you for the response. Sorry for not replying earlier but other commitments have meant I have been unable to have a chance to get back to the spread sheet.

    As you can probably tell I am a complete novice on this and probably trying to achieve too much with my limited knowledge!, so I am very grateful for your help.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Re previous thread. Matching data to reference number

    Quote Originally Posted by pernes View Post

    Raised as a new thread as I couldn't upload new spreadsheet in previous thread)
    Why? You couldn't do that in previous thread and you can on this one??. So:

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Matching dats to a reference number
    By pernes in forum Excel General
    Replies: 3
    Last Post: 03-25-2014, 04:48 PM
  2. suggestion for reference number for any new thread post
    By funtastic in forum Suggestions for Improvement
    Replies: 2
    Last Post: 12-22-2012, 12:17 PM
  3. [SOLVED] Compare columns, replace matching number with reference number and fill down random amount
    By datadigger in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-04-2012, 10:53 PM
  4. find matching value and return data from previous column
    By mheinmiller in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2009, 12:36 PM
  5. Previous Thread/Next Thread
    By ChemistB in forum ExcelTip.com Feedback / Comments / Suggestions
    Replies: 0
    Last Post: 01-31-2008, 10:32 AM

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