+ Reply to Thread
Results 1 to 5 of 5

Taking totals based on criteria. Is this possible?

Hybrid View

BigBas Taking totals based on... 02-24-2007, 02:01 PM
davesexcel This should work; paste... 02-24-2007, 02:27 PM
Carim Hi, With the structure of... 02-24-2007, 02:32 PM
BigBas Carim, Thanks for your... 02-24-2007, 03:24 PM
Carim Glad it fixed your problem... 02-24-2007, 03:30 PM
  1. #1
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Taking totals based on criteria. Is this possible?

    (See attachment below)

    I'm developing a spreadsheet that calculates totals earnings gross and net for a group of employees daily. Basically, I have the whole thing developed. On sheet 2, I would like to pull just the weekly totals out of sheet 1. I have tried vlookups, and Index/match formulas, but its hard to get it to pull the info correctly.

    Any help of suggestions?
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    This should work;

    paste these formulas starting in Sheet2 B3

    =INDEX(Sheet1!$K$3:$K$14,MATCH(A3,Sheet1!$A$3:$A$14,FALSE),MATCH($B$1,Sheet1!$A$2,FALSE))
    =INDEX(Sheet1!$K$3:$K$14,MATCH(A4,Sheet1!$A$3:$A$14,FALSE),MATCH($B$1,Sheet1!$A$2,FALSE))
    =INDEX(Sheet1!$K$3:$K$14,MATCH(A5,Sheet1!$A$3:$A$14,FALSE),MATCH($B$1,Sheet1!$A$2,FALSE))
    =INDEX(Sheet1!$K$3:$K$14,MATCH(A6,Sheet1!$A$3:$A$14,FALSE),MATCH($B$1,Sheet1!$A$2,FALSE))
    =INDEX(Sheet1!$K$3:$K$14,MATCH(A7,Sheet1!$A$3:$A$14,FALSE),MATCH($B$1,Sheet1!$A$2,FALSE))
    =INDEX(Sheet1!$K$3:$K$14,MATCH(A8,Sheet1!$A$3:$A$14,FALSE),MATCH($B$1,Sheet1!$A$2,FALSE))

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    With the structure of sheet1, use following offset formula, in sheet2 cell B3:
    =OFFSET(Sheet1!$K$3,14*(COLUMN()-2)+ROW()+ROW()-6,0)
    HTH
    Carim


    Top Excel Links

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Carim,

    Thanks for your help. Your formula worked wonderfully!

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad it fixed your problem ...

    Thanks for the feedback

+ Reply to 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