+ Reply to Thread
Results 1 to 6 of 6

Reference certain cells in a table based on cell criteria

  1. #1
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Reference certain cells in a table based on cell criteria

    I have a table that shows the days left until an item is due. I would like to know can these be made to echo 3 of the due items with the least time left onto another sheet?

    Prior to asking for help
    I looked into a formula based idea but vlookup needs a value to compare to and not what I was wanting. I also thought maybe using a script to auto sort the table lowest to largest and than just use something like =A3 =B3 =D3 =E3 in the sheet I want to show the data. However I would like this to be script driven as I am prone to deleting formulas in the cells and currently the project this will end up in has no formulas on the dashboard to prevent me from messing it up

    Here is the sample workbook with a Upcoming sheet that shows the outcome I am trying for with type of data that should be echoed.

    Also if this is a complex thing to do please let me know and I will shove it on the back burner for later in the future.

    Here is the sample workbook

    Thank you for looking

  2. #2
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: Reference certain cells in a table based on cell criteria

    okay I have gotten closer but 3 issues.
    1) How do I make this fire when the workbook opens but only display 3 results in Test sheet so it would overwrite itself
    2) only paste value no formatting
    3) if less than 3 assignments post what is there if none are there display "No Assignments Due"

    So far this works but doesnt sort and doesnt start with workbook
    Please Login or Register  to view this content.
    Revised the autofilter isnt working was in my head.
    Last edited by Mr_Bill; 09-26-2014 at 02:55 PM.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Reference certain cells in a table based on cell criteria

    Hello Mr_Bill,

    The attached workbook has been updated with the macro code below. This will load assignments that are 3 days or less into the table when the workbook opens.

    There is a Text Box that is hidden with the message "No Assignments Due". This is displayed only when there are no assignments 3 days or less pending.

    Module1 Macro Code
    Please Login or Register  to view this content.
    ThisWorkbook Module Code
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: Reference certain cells in a table based on cell criteria

    whoa that is way more work than I thought it would be. Thank you very much Would it be too much to ask for it to limit the results to only the lowest 3?

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Reference certain cells in a table based on cell criteria

    Hello Mr_Bill,

    I can make that happen.

  6. #6
    Forum Contributor
    Join Date
    08-14-2014
    Location
    US
    MS-Off Ver
    2013
    Posts
    135

    Re: Reference certain cells in a table based on cell criteria

    That will be awesome thank you. Also not sure if you noticed with this version but when you load it you get the initial ones will fill in and if you save exit and come back it adds more to the list instead of over writing the ones already there.

+ 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. [SOLVED] find reference cell based off 2 criteria
    By rossg in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-31-2014, 01:34 AM
  2. Macro to return a cell reference based on a seach criteria?
    By Al_O_L in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-29-2012, 08:47 AM
  3. how to reference another cell based on two criteria
    By jls141 in forum Excel General
    Replies: 0
    Last Post: 11-21-2011, 03:19 PM
  4. [SOLVED] return cell reference in a table based upon given lookup criteria
    By Travis in forum Excel General
    Replies: 3
    Last Post: 03-15-2006, 10:35 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