+ Reply to Thread
Results 1 to 10 of 10

Create Table based on data entry in cell

  1. #1
    Registered User
    Join Date
    05-22-2018
    Location
    Virginia, United States
    MS-Off Ver
    2016
    Posts
    31

    Create Table based on data entry in cell

    I want to compare the entry in cell B3 in Term Schedule worksheet to data in column G in the Program of Study worksheet. Where cell B3 Term Schedule worksheet matches/is equal to entries in column G of the Program of Study worksheet, I want to create a list/table in the Term Schedule worksheet (starting at approximately Cell B12. It will list the Course, Course name and Credits from the Program of Study worksheet where there is a match with the entry in Cell B3 of the Term Schedule worksheet.

    I will also need additional columns in the table/list created in the Term Schedule worksheet: "Repeat Course" and "C or Better?" In the C or Better? column, if the cell contains a course with GCS or TECH prefix I need the cell to populate with YES if it is not a GCS or TECH course, it should say NO. Under the "Repeat Course" column, I need the cell to provide a drop down list where the user can select YES or NO.

    I do not need the "Enroll" column in the Term Schedule sheet. I am just showing the information "filtered" from the Program of Study worksheet where there is a match between cell B3 (Term Schedule) and column G (Program of Study).

    Is there a way to create this Term Schedule document in a work document? Is there a way to connect the excel file with a word document to perform the same function?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Create Table based on data entry in cell

    This should be largely doable. Start by changing B12 from "Course Number" to "Course" so that it matches the header on the first sheet. Then, in B13, use the formula below; it should be array-entered (confirm with Ctrl + Shift + Enter instead of just Enter):

    =IFERROR(INDEX('Program of Study'!$A$8:$H$73,SMALL(IF('Program of Study'!$G$8:$G$74=$B$3,ROW('Program of Study'!$G$8:$G$74)-ROW('Program of Study'!$G$8)+1),ROW(1:1)),MATCH(B$12,'Program of Study'!$A$6:$H$6,0)),"")

    Fill right through G13 for the rest of your table. You can turn the "Repeat Course" column into a yes/no drop down with data validation. For "C or Better?" replace the formula in F13 with the following (non-array) formula:

    =IF(B13="","",IF(OR(LEFT(B13,4)="HPED",LEFT(B13,3)="GCS"),"YES","NO"))

    Fill down as far as you think you'll need to. Take a look at the attachment to see if it works for you:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Registered User
    Join Date
    05-22-2018
    Location
    Virginia, United States
    MS-Off Ver
    2016
    Posts
    31

    Re: Create Table based on data entry in cell

    Do I remove the { } from around the =iferror formula?

  4. #4
    Registered User
    Join Date
    05-22-2018
    Location
    Virginia, United States
    MS-Off Ver
    2016
    Posts
    31

    Re: Create Table based on data entry in cell

    When I type 201920 in cell B3 of the Term Schedule worksheet, the desired results were not produced.

  5. #5
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Create Table based on data entry in cell

    Quote Originally Posted by cobbrjr View Post
    Do I remove the { } from around the =iferror formula?
    No you don't remove the curly braces from around the formula. This signifies that it is an array entered formula.

    To commit these kinds of formula, after typing it you hit Ctrl + Shift + Enter, which will place the curly braces around it.

  6. #6
    Registered User
    Join Date
    05-22-2018
    Location
    Virginia, United States
    MS-Off Ver
    2016
    Posts
    31

    Re: Create Table based on data entry in cell

    Thank you CAntosh and kersplash. The worksheet functions as expected.

  7. #7
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Create Table based on data entry in cell

    I'm glad we could help, good luck!

  8. #8
    Registered User
    Join Date
    05-22-2018
    Location
    Virginia, United States
    MS-Off Ver
    2016
    Posts
    31

    Re: Create Table based on data entry in cell

    CAntosh or kersplash:

    In using the suggestion you gave me I found a scenario. What you suggested works fine if a student follows the program of study to the letter. However, in a situation where a student takes a course that will be used to substitute for the course (in column A of the Program Study), I would like the substituted course (in column E or column F of the Program of study) to be entered in the Course Schedule worksheet (in column B).

    See the Course Schedule_Current and Course Schedule_Expected worksheets. In the example, the Course Schedule worksheet is used to search the courses where the student enrolled in the course during the 201910 term (cell B3 in the Course Schedule worksheet). The results are passed under the Course, Course Name, Credits, Repeat Course?, and C or Better? "columns" in the Course Schedule worksheet. Currently (in Course Schedule_Current), the Course column is populated with the Courses that are in column A of the program of study where Cell B3 (Course Schedule) is equal to or matches entries in column G of the program of study.

    I need the Course Schedule worksheet to first check to see if columns E and F are empty/blank. If they are blank, then the course in column A (program of study) is returned to column B (Course Schedule). If the cell in column E is not blank and column F is blank (Program of Study) then return the value in column E (program of study) to column B (course schedule). If column F is not blank (Program of Study), then return the value in column F (Program of Study) to column B (course schedule).

    See the attached file with the Program of Study, Course Schedule_Current and Course Schedule_Expected. I have highlighted the salient cells and rows for illustration.
    Attached Files Attached Files
    Last edited by cobbrjr; 06-08-2018 at 10:45 PM.

  9. #9
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Create Table based on data entry in cell

    That makes things a bit uglier, but it should still be doable. Try the following in B14; it should be array-entered (confirmed with Ctrl + Shift + Enter instead of Enter):

    =IFERROR(INDEX('Program of Study'!$A$8:$H$73,SMALL(IF('Program of Study'!$G$8:$G$74=$B$3,ROW('Program of Study'!$G$8:$G$74)-ROW('Program of Study'!$G$8)+1),ROW(1:1)),MAX((ROW('Program of Study'!$A$8:$H$73)=SMALL(IF('Program of Study'!$G$8:$G$74=$B$3,ROW('Program of Study'!$G$8:$G$74)),ROW(1:1)))*(NOT(ISBLANK('Program of Study'!$A$8:$H$73)))*({1,0,0,0,5,6,0,0}))),"")

    ...and fill down. If I'm understanding the objective correctly, then you can leave the formulas in C:F as they are. Take a look at the attachment to see if it's working as desired:
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    05-22-2018
    Location
    Virginia, United States
    MS-Off Ver
    2016
    Posts
    31

    Re: Create Table based on data entry in cell

    This is the solution to the issue. If I run into any other scenarios, I will post them.

+ 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: 0
    Last Post: 04-06-2017, 03:30 AM
  2. Replies: 3
    Last Post: 12-18-2015, 03:16 PM
  3. Replies: 0
    Last Post: 01-19-2015, 11:00 AM
  4. Creating a table for daily data entry over a month based on list of assets.
    By Spicey_888 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2014, 03:30 AM
  5. Prohibit data entry based on adjacent cell
    By davemus in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-15-2013, 03:30 AM
  6. Restrict data entry based on another cell
    By northbank in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-13-2012, 11:33 AM
  7. Create Charts based on data in Table
    By MAttenborough in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-11-2005, 07:05 PM

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