Results 1 to 4 of 4

Thread: How to check the presence of a person in Excel

  1. #1
    Join Date
    Nov 2009
    Posts
    42

    How to check the presence of a person in Excel

    I am facing a trouble programming in Excel. I have a formula in a workbook that is located in a page "stats" and 31 sheets in the same workbook representing a file of work. So I wrote a formula allowing me to verify in the 31 pages the presence of a person with this formula

    Code:
    =SUMPRODUCT( NB. IF( INDIRECT ( LINE ( INDIRECT ( "1:31" ) ) & "!$F$15" ) ; "4075" ) )
    4075 is the value of a registration number of an agent

    My worry is that the Excel will see in the box f15 if 4075 is present and therefore adds a work 1 and so on about 31 sheets in f15. This works great, but the worry is that this agent may be of f15 to f29 or f32 to f40. I can not state in my formula in Excel verifier presence of 4075 of f15 to f29 or f32 to f40 on 31 sheets.

    Code:
    =SUMPRODUCT( NB. IF( INDIRECT ( LINE ( INDIRECT ( "1:31" ) ) & "!$f$15" & "!$f$16" & "!$f$17" ) ; "X" ) )
    but its not working?

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    Re: How to check the presence of a person in Excel

    I think there is some problem in your formula. Just try to do something like:

    Code:
    =SUMPRODUCT( NB. IF ( INDIRECT ( LINE ( "1:31" ) ) & ( $F$ 15 :$F$ 29 ) * ( $F$ 32 :$F$ 40 ) ; "4075" ) )

  3. #3
    Join Date
    Nov 2008
    Posts
    1,185

    Re: How to check the presence of a person in Excel

    I do not want to test an idea:

    Code:
    ={SUMPRODUCT(NB.IF(INDIRECT(LINE(INDIRECT( "1:31" ))& "!$F$15:$F$29" ); "4075" ))}
    Tests on simple validation and validation matrix (Ctrl + Shift + Enter) if it does not works simply.

  4. #4
    Join Date
    Nov 2009
    Posts
    42

    Re: How to check the presence of a person in Excel

    Thank you and its works great except that I have wrong formula. The formula that I should use is: =SUMPRODUCT(($B15='1'!$B$15:$B$40)*('1'!$F$15:$F$40="X"))+... My worry is that this transaction is calculated on 31 times on and so I made a copy and paste 31 times but made the Excel formula too long that it would have extend much to reduce the formula page 1A31

Similar Threads

  1. How to check date status in Excel
    By Chini mao in forum Windows Software
    Replies: 4
    Last Post: 07-01-2012, 04:40 PM
  2. Replies: 6
    Last Post: 16-06-2011, 10:36 PM
  3. Replies: 6
    Last Post: 17-05-2011, 10:00 PM
  4. How to check with vb.net whether excel file is open
    By Guns-n-Roses in forum Software Development
    Replies: 3
    Last Post: 10-08-2009, 12:56 PM
  5. How to check if a number belongs to a column or not in Excel
    By $tatic in forum Software Development
    Replies: 4
    Last Post: 07-04-2009, 09:45 PM

Tags for this Thread

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
  •  
Page generated in 1,714,051,271.13486 seconds with 16 queries