Closed Thread
Results 1 to 3 of 3

More complex look up formula

  1. #1
    Forum Contributor
    Join Date
    09-22-2009
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2016
    Posts
    134

    More complex look up formula

    This question is related to another question I asked a couple of days ago (http://www.excelforum.com/excel-gene...condition.html)

    To recap;
    I’ve got a long spreadsheet with many rows (>5000). Each row relates to a time someone has been off work sick. In two columns (D and G) I have “reasons” for sickness and “Days lost” due to sickens respectively.

    I have set up a look-up type formal to search for the reasons for sickness (=COUNTIF($D$4:$D$5955,I4), which obviously simply counts the number of times “stress”, for example, appears in my list.

    I’ve now got a formula that counts the number of days lost per condition (i.e. it finds all the “stress” and finds the number next to it, and add that up). =SUMIF(D$4:D$65536,"Stress",G$4:G$65536)

    What I’m wanting to do now (if possible) is group conditions together and get excel to count number of days instances and days lost the group. For example stress would be grouped with depression and anxiety as “Emotional Health”. I don’t know if this is the why to go but I’ve created another worksheet. On that sheet, column A rows 2-12 contain all the conditions I want to fall into the Emtional_Health group. The group is named by highlighting A2-12 and naming it in the Name Box.
    Am I on the right lines? Where do I go from here?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: More complex look up formula

    Duplicate Thread

    Original is here..
    http://www.excelforum.com/excel-form...onditions.html


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: More complex look up formula

    Thank you 6th sense

    Burnsie,

    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.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

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