+ Reply to Thread
Results 1 to 8 of 8

Shorten Long Formula

  1. #1
    Forum Contributor
    Join Date
    11-14-2004
    Location
    Watford, England
    MS-Off Ver
    Microsoft Office 365
    Posts
    131

    Shorten Long Formula

    Hi There,

    I would like to try and shorten a long formula that I am using to check about 25 sheets for a match.

    I have attached an example of what I would like to do with just 4 sheets but eventually this will expand to over 50 sheets plus.

    This is just a snippet of the code I am using, this only checks TWO sheets and I currently have approx 25 and increasing
    Please Login or Register  to view this content.
    If you open the attached example it should explain my requirements in an easier format.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Shorten Long Formula

    To be honest, you are doing yourself no favours at all. Add an extra column for the date of the course and then put all the attendance data on one sheet. You can make it a Structured Table so you can sort it and filter it to your heart's content. And, if you want more of an analysis than just a sorted/filtered list, you can create one or more Pivot Tables.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Shorten Long Formula

    Since I totally agree with TMS, I made a structered table for you on sheet 1.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Contributor
    Join Date
    11-14-2004
    Location
    Watford, England
    MS-Off Ver
    Microsoft Office 365
    Posts
    131

    Re: Shorten Long Formula

    Hi Guys,

    Thanks for the reply.

    I may have not explained myself correctly. I only want to have to complete the sheets with "Att" (attendance sheets) and then have it fill out the "MATER" for me with the date that person completed the course. I don't want to have to enter information in more than once.

    It would go like this.

    1. I place the people on the attendance sheet on the relevant day.
    2. I put a Y or N on the attendance sheet for that day to show if they turned up or not
    3. If its a "N" then nothing happens
    4. If its a "Y" then the date that person took that course is placed automatically in "MASTER" Column "D"

    The problem I see is the more attendance sheets I have the longer the formula gets.

    Hope this explains my request better

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Shorten Long Formula

    Yes I understand, but if you add all data in the table, I create for you, you only have to fill that one.

    1) You want to add data just once, so that will meet to your criteria.

    Then you want to analyse the data (the people who followed the course).
    You have the problem you have to look in many worksheets.

    2) If you have 1 worksheet with all data in it, you only have to analyse 1 worksheet, which is much easier.

    You can use e.g. filter, or pivot table to analyse the data.

    With all data on differant sheets, we need to collect all data in one sheet, before we can analyse the data.

    3) So learn from your "mistake" and learn the profit of a table (in 1 sheet).


    I made the same mistake also when I started learning Excel, so you don't need to feel guilty.
    Last edited by oeldere; 08-20-2020 at 01:45 PM.

  6. #6
    Forum Contributor
    Join Date
    11-14-2004
    Location
    Watford, England
    MS-Off Ver
    Microsoft Office 365
    Posts
    131

    Re: Shorten Long Formula

    Hi Oeldere,

    The problem is I need to print out the attendance sheets for signing but I think I get your view.

    Thanks

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Shorten Long Formula

    See the sheet with filtered data (filtered on Yes).

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: Shorten Long Formula

    If you use oeldere's workbook/table, you can filter on an individual and/or date and/or attended ... print, repeat.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. shorten very long formula
    By dioxide in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-22-2019, 06:58 PM
  2. How to use AND & IF and shorten a long formula
    By VisionSmart in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-16-2019, 06:45 AM
  3. [SOLVED] How to shorten Too Long Countif formula
    By putraguevara in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-10-2019, 04:12 PM
  4. Shorten very long vlookup formula
    By pframpton in forum Excel General
    Replies: 2
    Last Post: 08-27-2015, 09:42 AM
  5. Long formula, need to shorten
    By BlairStevenson in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-06-2014, 12:23 PM
  6. [SOLVED] Too Long formula to shorten help
    By lapot in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-14-2014, 07:51 AM
  7. [SOLVED] Shorten a very long Formula
    By Floydlevedale in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2013, 09:39 AM

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