+ Reply to Thread
Results 1 to 4 of 4

Count using 2 criterias

  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Count using 2 criterias

    Hi guys,

    I have a sheet with the week number in column a and the number of days in column b.

    I need a formula the sum of all the days that land in a particular week e.g

    a b
    1 10
    1 10
    2 11

    if i wanted to get the sum of the number of days in week 1 what would the formula be please guys?

    Hope you can help im sure its very simple. Cheers
    Last edited by VBA Noob; 03-27-2007 at 08:42 AM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Try

    =SUMIF(A:A,1,B:B)

    or dynamic one try this in b1 and drag down to cell B52

    =SUMIF(A:A,ROW(A1),B:B)

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Thumbs up Thanks

    Hey dude

    knew it would be dead easy it scary i don't know that with my level of knowledge but were all learning right.

    Many thanks bud

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem. Glad it helped

    Indeed we are all learning

    VBA Noob

+ 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