+ Reply to Thread
Results 1 to 8 of 8

I'm trying to create an IF statement to omit certain data

  1. #1
    Registered User
    Join Date
    07-07-2017
    Location
    Connecticut, USA
    MS-Off Ver
    2016
    Posts
    5

    I'm trying to create an IF statement to omit certain data

    So i'm creating a dashboard and a requirement for that dashboard is to show what reports are due within 7 days. I have around 300 entries (they span 12 months and get filled in as they go) and can only get it to work by having a table that is 300 boxes wide, with tons of white space or '#VALUE' notifications. I saw a post somewhat like my problem but wasn't nearly as complex. SOME BACKGROUND INFO - Once you put a date into the 'Inspection End Date' cell, a new date (which is 21 days later) pops up into the adjacent cell, and that is the date that the report is due. What I need, is a formula that will scan those columns, from row 8 to row 319, and if the report due date is within 7 days of today's current date (which i just use (TODAY()+7)), then the Bridge ID, Cells C8-C319, are put into a nice little table on a different sheet (the sheet is called Dashboard). An extra would be that if the due date has passed without a date being entered into the 'Report Submitted' column (basically just being late), then having that bridge ID coming up into another table (on that Dashboard sheet) for late reports.
    Thank you so much!!
    Attached Images Attached Images
    Last edited by Gavin916; 07-19-2017 at 08:30 AM. Reason: Got rid of Photo

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: I'm trying to create an IF statement to omit certain data

    Hi, welcome to the forum

    Always better to upload a sample file, rather than a pic, we cant work with pics

    However, if you want to pull in data from specific column/s, take a look at using INDEX/MATCH/MATCH - include =TODAY()+0, TODAY()+1 etc (or reference TODAY() instead)

    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-07-2017
    Location
    Connecticut, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: I'm trying to create an IF statement to omit certain data

    Thanks! The outcome I'm looking for is just a simple data table that will list out the bridge numbers whose reports need to be submitted within the next 7 days. Thanks for the quick response!!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-07-2017
    Location
    Connecticut, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: I'm trying to create an IF statement to omit certain data

    I threw those dates in just to show you an example. Its very simple but figured that it wouldn't hurt!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: I'm trying to create an IF statement to omit certain data

    So what would a sample answer look like?

  6. #6
    Registered User
    Join Date
    07-07-2017
    Location
    Connecticut, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: I'm trying to create an IF statement to omit certain data

    If I am understanding correctly, this is what I want for the outcome. It is under the dashboard sheet
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: I'm trying to create an IF statement to omit certain data

    Im a little responding, sorry, RL interfered (Im having my garage re-wired)

    Try this ARRAY formula to pull the "within 7 days" part...
    =IFERROR(INDEX('Sample Data'!$B:$B,SMALL(IF(('Sample Data'!$D$2:$D$10<=TODAY()+7)*('Sample Data'!$E$2:$E$10=""),ROW('Sample Data'!$A$2:$A$10)),ROWS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Then copy down

    Use the same thing for the dates, just change the bolded part. If you want to make this a bit more flexible, instead of hard-coding 7, put the 7 in it's own cell and reference it, that way, you can see 1 day out, 7 days out, 10 days etc, just by changing that cell.

    The 2nd table should be the same thing, give it a go and let me know how you make out?

  8. #8
    Registered User
    Join Date
    07-07-2017
    Location
    Connecticut, USA
    MS-Off Ver
    2016
    Posts
    5

    Re: I'm trying to create an IF statement to omit certain data

    Thank you so much, that was exactly what i was looking for!! I cannot thank you enough!

+ 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. Replies: 2
    Last Post: 06-20-2017, 12:31 AM
  2. Replies: 0
    Last Post: 11-03-2014, 12:14 AM
  3. Create persistent data field with if statement?
    By Sam S in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-25-2014, 06:06 PM
  4. Trying to create an If statement with VBA based on Pivot table data
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2012, 03:50 PM
  5. Trying to create IF statement to populate cell with Vlookup Data
    By Karroog in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-21-2011, 06:10 PM
  6. Charts will not omit blank data
    By sinspawn56 in forum Excel Charting & Pivots
    Replies: 16
    Last Post: 07-02-2010, 03:51 AM
  7. Help create a IF statement to look to to seperate vookup data sour
    By Scottinphx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2006, 07: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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1