+ Reply to Thread
Results 1 to 5 of 5

Automate True-False Test on Long Column of Company Data

  1. #1
    Forum Contributor
    Join Date
    03-22-2012
    Location
    Narragansett, Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    122

    Automate True-False Test on Long Column of Company Data

    Hi

    The attached worksheet is an example of a larger worksheet that contains the expenses for 3000+ companies. The columns represent the following categories: A(record number); B(organizational number); C (line number representing specific expense categories; D (salary ( line 100) and non salary (line 200) expenses); E Item value. The companies report up to 100 lines of data identified as lines 1-100. The last two lines, 101 salary and non-salary expenses end the data for each company. Each company reports salary and non-salary expenses for each line item; not all companies report every line or every category. I have used the true-false test =sum(E1:E100)=(E101:101) manually for smaller worksheets. I would like to automate this formula in some sort of a drag down fashion to run the test on a much larger worksheet.
    Thank you for taking the time to read and consider this query.

    Al
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Automate True-False Test on Long Column of Company Data

    Hi,

    I don't see any 100 or 101 stuff in column E so I can't show you, BUT....

    Pivot tables can easily filter and sort your data. http://chandoo.org/wp/2009/08/19/exc...bles-tutorial/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Automate True-False Test on Long Column of Company Data

    hi alcharbonneau, does this help you?

    =IF(A2=A3,"",SUM(OFFSET(E2,-COUNTIF($A:$A,A2)+1,0,COUNTIF($A:$A,A2)-2))=SUM(E1:E2))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    03-22-2012
    Location
    Narragansett, Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Automate True-False Test on Long Column of Company Data

    Hi

    Thanks for responding. Sorry for not being clear with my query. In the first company 660004 there is not 100 entry. Row 93 and 94, however, are the first examples of the 101 entries and the true-false statement that I mentioned in my query.

    I'll take a look at the pivot table reference but I am an Excel newbie so I am not, unfortunately, not very efficient with new approaches.

    Does my identifying the 101 help with a recommendation?

    Thanks

    Al

  5. #5
    Forum Contributor
    Join Date
    03-22-2012
    Location
    Narragansett, Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    122

    Re: Automate True-False Test on Long Column of Company Data

    Good Evening.

    Thanks for responding to my inquiry.

    I just got on line and ran a few tests. It seems to work fantastically. I'll try some more tests in the morning.

    In the mean time, thanks again.

    I sure wish I could understand more of how one can learn to create these formulae?

    Thanks

    Al

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1