+ Reply to Thread
Results 1 to 2 of 2

Automate formulas depending on number of records

  1. #1
    Registered User
    Join Date
    05-14-2012
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    8

    Automate formulas depending on number of records

    Hello,

    I have a spreadsheet I am using to track people as I collect an item from each of them. Each of these items has a barcode. I am using a handheld scanner to scan the barcode into my "Scan Sheet" which will then update a few fields, including "Scanned", "Not Scanned" and a separate sheet for "Missing People". In a few areas of my spreadsheet I need to manually update certain cells or columns depending on the amount of records on the data sheet. I know this could be done better or differently.

    This sample sheet has 6 records. If there are extra records entered onto the Data sheet, I need to manually update column D by dragging the formula down to match the amount of users. I'm sure there should be a better way.

    My Scan Sheet is where I do the scanning to enter the barcodes, it has a running total for number "scanned", right now the formula needs to be updated manually depending on the number of guests. I'm sure there's a simple, better formula.

    Last my 'Missing People' sheet has a list of all people, unless they have been scanned then the row is blank. There might be a better way to collect this data, but what I have works, I would just prefer if the blank rows were removed automatically for easier viewing.

    Hope this all makes sense, appreciate any help improving this spreadsheet!

    Thanks,
    Chris
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Automate formulas depending on number of records

    sheet in B1 use this formula

    =COUNTA(Data!A2:OFFSET(Data!A2,COUNTA(A:A),0))

    in scan sheet in B3 use this formula

    =COUNTIF(Data!A2:OFFSET(Data!A2,COUNTA("A:A"),0),"<>""")

    in scan sheet in B5 just use
    =B1-B3


    in sheet 'data' if you make additional entries from B8 down. then
    take the cursor the curoser ot the right bottom of D7 when the
    cursor changes to plus sign and click that plus sign D7 will be
    copied down as far as data is available in colulmn B without blank
    I am not an expert. better solutions may be available
    [email protected]

+ 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