+ Reply to Thread
Results 1 to 5 of 5

Calculations

Hybrid View

  1. #1
    J. McGonigal
    Guest

    Calculations

    I am attempting to create a function to do the following.

    I have to columns of data that I need to go through. I am attempting to
    talley the number of occurences of each item.

    To do this I need to go through column 'a' and every time it is 1, i then
    must check column 'b'. If in column b the numbers 1,3,5,6 are found then I
    need to add one to the talley. Can anyone suggest a way to do this. I
    attempted to use countif formula but could not get something on it to work.



  2. #2
    Biff
    Guest

    Re: Calculations

    Hi!

    Try this:

    =SUMPRODUCT(--(A1:A20=1),--(ISNUMBER(MATCH(B1:B20,{1,3,5,6},0))))

    Biff

    "J. McGonigal" <JMcGonigal@discussions.microsoft.com> wrote in message
    news:2CB11996-C62F-4A2B-A628-575A37C63564@microsoft.com...
    >I am attempting to create a function to do the following.
    >
    > I have to columns of data that I need to go through. I am attempting to
    > talley the number of occurences of each item.
    >
    > To do this I need to go through column 'a' and every time it is 1, i then
    > must check column 'b'. If in column b the numbers 1,3,5,6 are found then I
    > need to add one to the talley. Can anyone suggest a way to do this. I
    > attempted to use countif formula but could not get something on it to
    > work.
    >
    >




  3. #3
    J. McGonigal
    Guest

    Re: Calculations

    Thanks, this worked wonderfully! Would mine explaining what the "--" do?

    "Biff" wrote:

    > Hi!
    >
    > Try this:
    >
    > =SUMPRODUCT(--(A1:A20=1),--(ISNUMBER(MATCH(B1:B20,{1,3,5,6},0))))
    >
    > Biff
    >
    > "J. McGonigal" <JMcGonigal@discussions.microsoft.com> wrote in message
    > news:2CB11996-C62F-4A2B-A628-575A37C63564@microsoft.com...
    > >I am attempting to create a function to do the following.
    > >
    > > I have to columns of data that I need to go through. I am attempting to
    > > talley the number of occurences of each item.
    > >
    > > To do this I need to go through column 'a' and every time it is 1, i then
    > > must check column 'b'. If in column b the numbers 1,3,5,6 are found then I
    > > need to add one to the talley. Can anyone suggest a way to do this. I
    > > attempted to use countif formula but could not get something on it to
    > > work.
    > >
    > >

    >
    >
    >


  4. #4
    Fred Smith
    Guest

    Re: Calculations

    The other option is to create a Pivot Table. Once you understand them, they are
    very slick and very powerful. There are several sites, including
    www.cpearson.com which explain Pivot Tables.

    --
    Regards,
    Fred


    "J. McGonigal" <JMcGonigal@discussions.microsoft.com> wrote in message
    news:2CB11996-C62F-4A2B-A628-575A37C63564@microsoft.com...
    >I am attempting to create a function to do the following.
    >
    > I have to columns of data that I need to go through. I am attempting to
    > talley the number of occurences of each item.
    >
    > To do this I need to go through column 'a' and every time it is 1, i then
    > must check column 'b'. If in column b the numbers 1,3,5,6 are found then I
    > need to add one to the talley. Can anyone suggest a way to do this. I
    > attempted to use countif formula but could not get something on it to work.
    >
    >




  5. #5
    J. McGonigal
    Guest

    Re: Calculations

    Thanks, I will begin to look at this in the near future.

    "Fred Smith" wrote:

    > The other option is to create a Pivot Table. Once you understand them, they are
    > very slick and very powerful. There are several sites, including
    > www.cpearson.com which explain Pivot Tables.
    >
    > --
    > Regards,
    > Fred
    >
    >
    > "J. McGonigal" <JMcGonigal@discussions.microsoft.com> wrote in message
    > news:2CB11996-C62F-4A2B-A628-575A37C63564@microsoft.com...
    > >I am attempting to create a function to do the following.
    > >
    > > I have to columns of data that I need to go through. I am attempting to
    > > talley the number of occurences of each item.
    > >
    > > To do this I need to go through column 'a' and every time it is 1, i then
    > > must check column 'b'. If in column b the numbers 1,3,5,6 are found then I
    > > need to add one to the talley. Can anyone suggest a way to do this. I
    > > attempted to use countif formula but could not get something on it to work.
    > >
    > >

    >
    >
    >


+ 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