+ Reply to Thread
Results 1 to 93 of 93

Vlookup Count confusion !

  1. #1
    Registered User
    Join Date
    10-27-2004
    Posts
    6

    Vlookup Count confusion !

    The scenario is that i have 2 worksheets to link together.

    In Worksheet 1 i have the following:
    3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40, 41-50


    In Worksheet 2 i have the following data in 2 columns:
    8 (in A1) 1 (in B1)
    9 (in A2) 2 (in B2)
    10 (in A3) 2 (in B3 etc)
    21 3
    7 1
    44 1 etc
    The question is, In sheet 1, can i get a formula to count the number of (for example) 1's in the range of (for example) 1-10 by looking at the data in sheet 2, and returning the number in Sheet 1 B2. In this example, the number of 1's in the range 1-10 is 2.... But whats the formula ??

    I've been looking at Vlookup and Count functions and IF functions but no joy yet, so if anyone can help please? Many thanks

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    a little unclear but

    =sumproduct((sheet2!a1:a100>=1)*(sheet2!a1:a100<=10)*(sheet2!b1:b100=1))

    will return a count of the # of 1's in column b sheet 2 where column a is in the range of 1 to 10

    If you are trying to refer to the column a entry in sheet 1 of "1 - 10", I think you will have difficulty, though you could neter 1 in say column f and 10 in column g and refer to those cells in the sum product (instead of ">=1" use ">=f2" if the 1-10 row is row 2. The column a entry would then be =f2&" - "&g2

    hope this helps
    not a professional, just trying to assist.....

  3. #3
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  4. #4
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  5. #5
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  6. #6
    Registered User
    Join Date
    10-27-2004
    Posts
    6
    Hello Anne and thanks for your response.

    The answer to your 'answer' gives a return of 6 (1+2+2+1) for the range 1-10.

    I'd like it to return an answer of the how many 1's there are in the range 1-10 (so the right answer is '2' ....i'e there are 2 1's in the range 1-10.

    I think we're nearly there....!

  7. #7
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    since you have two critieria - only count "1"'s and only for column a in range of 1-10 you need the sumproduct formula.

  8. #8
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  9. #9
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    as far as i can tell it is because the 44 in column a corresponding to the 3rd 1 in column b is not in the range of 1 to 10. But, the question is not very clear.

  10. #10
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  11. #11
    Registered User
    Join Date
    10-27-2004
    Posts
    6
    Sorry for confusing you...it's because i'm confused !

    To clarify,

    I'd like the formula to count the number of 1's in column 2, if the number on the same row in column 1 is between 1 and 10.

    So the scenario is, in column 1, I have the following numbers
    8 in A1
    9 in A2
    10 in A3
    21 in A4
    7 in A5
    44 in A6

    In column 2 I have
    1 in B1
    2 in B2
    2 in B3
    3 in B4
    1 in B5
    1 in B6

    The formula i'd like in (say) C1 is to Count the number of 1's that occur in column 2, only if the number in the same row in Column 1 is in the range 1-10.

    So the answer i'd like would be 2 in this example. Because a 1 in Column 2 is only adjacent twice to a number between 1-10 in column 1 (the numbers being 8 (A1) and 7 (A5))

    Sorry Duane, Ron, Anne.....

  12. #12
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  13. #13
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  14. #14
    Registered User
    Join Date
    10-27-2004
    Posts
    6

    Smile

    ****Duane - You Are A Star****

    and many, many thanks to everyone who replied...
    Last edited by Andy787878; 06-26-2005 at 09:37 AM. Reason: Additional message

  15. #15
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    the only thing i would add is are you looking for 1-10 inclusive, or "between 1 and 10" ie 2-9 inclusive?

  16. #16
    Registered User
    Join Date
    10-27-2004
    Posts
    6
    1-10 inclusive...

  17. #17
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  18. #18
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  19. #19
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  20. #20
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  21. #21
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  22. #22
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  23. #23
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  24. #24
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  25. #25
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  26. #26
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  27. #27
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  28. #28
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  29. #29
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  30. #30
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  31. #31
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  32. #32
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  33. #33
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  34. #34
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  35. #35
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  36. #36
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  37. #37
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  38. #38
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  39. #39
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  40. #40
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  41. #41
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  42. #42
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  43. #43
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  44. #44
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  45. #45
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  46. #46
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  47. #47
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  48. #48
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  49. #49
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  50. #50
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  51. #51
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  52. #52
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  53. #53
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  54. #54
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  55. #55
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  56. #56
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  57. #57
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  58. #58
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  59. #59
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  60. #60
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  61. #61
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  62. #62
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  63. #63
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  64. #64
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  65. #65
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  66. #66
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  67. #67
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  68. #68
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  69. #69
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  70. #70
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  71. #71
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  72. #72
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  73. #73
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  74. #74
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  75. #75
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  76. #76
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  77. #77
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  78. #78
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  79. #79
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  80. #80
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  81. #81
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  82. #82
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  83. #83
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  84. #84
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  85. #85
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  86. #86
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  87. #87
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 08:36:51 -0500, Andy787878
    <[email protected]> wrote:

    >
    >The scenario is that i have 2 worksheets to link together.
    >
    >In Worksheet 1 i have the following:
    >3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    >5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    >41-50
    >
    >
    >In Worksheet 2 i have the following data in 2 columns:
    >8 (in A1) 1 (in B1)
    >9 (in A2) 2 (in B2)
    >10 (in A3) 2 (in B3 etc)
    >21 3
    >7 1
    >44 1 etc
    >The question is, In sheet 1, can i get a formula to count the number
    >of (for example) 1's in the range of (for example) 1-10 by looking at
    >the data in sheet 2, and returning the number in Sheet 1 B2. In this
    >example, the number of 1's in the range 1-10 is 2.... But whats the
    >formula ??


    What does "the number of 1's in the range 1-10" mean, exactly? What is the
    significance of "1-10" in other words. Or why isn't the correct answer merely
    the count of 1's (B1, B5, B6) = 3?


    --ron

  88. #88
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sat, 25 Jun 2005 14:31:09 -0500, duane
    <[email protected]> wrote:

    >
    >as far as i can tell it is because the 44 in column a corresponding to
    >the 3rd 1 in column b is not in the range of 1 to 10. But, the
    >question is not very clear.


    You're probably correct. Let's see if he clarifies things.


    --ron

  89. #89
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Now you've got me confused. LOL. Try this, Andy:
    http://www.mrexcel.com/td0128.html
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  90. #90
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Oh! By the way, Andy, change your values from (for instance) 1-10 to just
    10. If you need the "1 to" part, then put it in a previous column.
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




  91. #91
    Ragdyer
    Guest

    Re: Vlookup Count confusion !

    SO ... Duane's Sumproduct formula works *exactly* as you specified.

    Have you tried it?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Sorry for confusing you...it's because i'm confused !
    >
    > To clarify,
    >
    > I'd like the formula to count the number of 1's in column 2, if the
    > number on the same row in column 1 is between 1 and 10.
    >
    > So the scenario is, in column 1, I have the following numbers
    > 8 in A1
    > 9 in A2
    > 10 in A3
    > 21 in A4
    > 7 in A5
    > 44 in A6
    >
    > In column 2 I have
    > 1 in B1
    > 2 in B2
    > 2 in B3
    > 3 in B4
    > 1 in B5
    > 1 in B6
    >
    > The formula i'd like in (say) C1 is to Count the number of 1's that
    > occur in column 2, only if the number in the same row in Column 1 is in
    > the range 1-10.
    >
    > So the answer i'd like would be 2 in this example. Because a 1 in
    > Column 2 is only adjacent twice to a number between 1-10 in column 1
    > (the numbers being 8 (A1) and 7 (A5))
    >
    > Sorry Duane, Ron, Anne.....
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >



  92. #92
    Ron Rosenfeld
    Guest

    Re: Vlookup Count confusion !

    On Sun, 26 Jun 2005 05:02:11 -0500, Andy787878
    <[email protected]> wrote:

    >
    >Sorry for confusing you...it's because i'm confused !
    >
    >To clarify,
    >
    >I'd like the formula to count the number of 1's in column 2, if the
    >number on the same row in column 1 is between 1 and 10.
    >
    >So the scenario is, in column 1, I have the following numbers
    >8 in A1
    >9 in A2
    >10 in A3
    >21 in A4
    >7 in A5
    >44 in A6
    >
    >In column 2 I have
    >1 in B1
    >2 in B2
    >2 in B3
    >3 in B4
    >1 in B5
    >1 in B6
    >
    >The formula i'd like in (say) C1 is to Count the number of 1's that
    >occur in column 2, only if the number in the same row in Column 1 is in
    >the range 1-10.
    >
    >So the answer i'd like would be 2 in this example. Because a 1 in
    >Column 2 is only adjacent twice to a number between 1-10 in column 1
    >(the numbers being 8 (A1) and 7 (A5))
    >
    >Sorry Duane, Ron, Anne.....


    And what happens when you use Duane's formula? It appears as if it should work
    according to these specs.


    --ron

  93. #93
    Anne Troy
    Guest

    Re: Vlookup Count confusion !

    Try something like this, Andy:
    =SUMIF(Sheet2!$A$1:$A$6,"<="&A2,Sheet2!$B$1:$B$6)
    *******************
    ~Anne Troy

    www.OfficeArticles.com
    www.MyExpertsOnline.com


    "Andy787878" <[email protected]> wrote
    in message news:[email protected]...
    >
    > The scenario is that i have 2 worksheets to link together.
    >
    > In Worksheet 1 i have the following:
    > 3 Columns, marked 1 (in B1), 2 (in C1), 3 (in D1)
    > 5 rows marked 1-10 (in A2), 11-20 (in A3), 21-30 (in A4 etc), 31-40,
    > 41-50
    >
    >
    > In Worksheet 2 i have the following data in 2 columns:
    > 8 (in A1) 1 (in B1)
    > 9 (in A2) 2 (in B2)
    > 10 (in A3) 2 (in B3 etc)
    > 21 3
    > 7 1
    > 44 1 etc
    > The question is, In sheet 1, can i get a formula to count the number
    > of (for example) 1's in the range of (for example) 1-10 by looking at
    > the data in sheet 2, and returning the number in Sheet 1 B2. In this
    > example, the number of 1's in the range 1-10 is 2.... But whats the
    > formula ??
    >
    > I've been looking at Vlookup and Count functions and IF functions but
    > no joy yet, so if anyone can help please? Many thanks
    >
    >
    > --
    > Andy787878
    > ------------------------------------------------------------------------
    > Andy787878's Profile:

    http://www.excelforum.com/member.php...o&userid=15792
    > View this thread: http://www.excelforum.com/showthread...hreadid=382197
    >




+ 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