+ Reply to Thread
Results 1 to 10 of 10

Create a list in the output sheet by picking data from database, based on a cell value

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    germany
    MS-Off Ver
    Excel 2007
    Posts
    8

    Create a list in the output sheet by picking data from database, based on a cell value

    Hey,

    I am new to the forum and trying to find a way to pick applicable value from the database and put it in the output sheet based on a cell value.

    Please refer to my attachment. There are three sheets in my file.

    1. Database - It has a list of students name,and the information of subjects they had passed and failed.

    2. Interface - User uses this sheet to give his input based on the dropdown menu. For example: if the user wants to see the students passed in English, then he has to select 'English' in subject(B3) and 'Passed' in the Status (E3) in Interface sheet.

    3. Output -after the input is given in the B3 & E3 cells of Interface sheet, the output sheet should show the section, name of students.
    Pick from database based on cell value.xlsx
    But how to make it work in Excel, someone please help me. I am a user of basic excel features but a novice in such complex tasks.

    I got just 10 more days to finish this project. I appreciate your quick responses.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    This looks like a school project or homework to me. Please check out the Forum Rules and FAQ to see the stance that the Forum takes on this.

    Pete

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    germany
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    hello Pete,

    No, i am not a school student and this is not a school project. That attachement is just an example to represent the objective of my activity.

    That is just a easy example which i used to apply the same logic to my complex requirement.
    I hope your misunderstanding will be clear by my response.

    Thank you

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    Your attachment should be representative of your real data, with the same columnar layout as in your real file.

    No contributor wants to spend time coming up with a solution only for the OP to say "my real data isn't like that".

    Pete

  5. #5
    Registered User
    Join Date
    10-22-2013
    Location
    germany
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    Thanks for the information pete..

    I will attach my real data.. but my concern is, it is quite huge..

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    It doesn't need to be the complete file - just a small number of records by which you can illustrate what you want to achieve. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Pete

  7. #7
    Registered User
    Join Date
    10-22-2013
    Location
    germany
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    Hello again,

    Hereby I had given my real data update and reattached the new file which clearly shows my requirement.

    As I said there are 3 sheets in the work book.

    1. Database sheet: This is the actual database from where the data has to be picked. It shows the status of each and every activity. if crossed(x) it means it is applicable. usually the database will be hidden sheet.

    database.JPG


    2. Interface sheet: This the sheet user uses to give input.. user selects the project category from frop down menu and also the preferred status. Based on these inputs in that particular drop down menu cells, it has to pick only the applicable activity and group using the cross (x) mark and drop it in the output sheet in the format shown in the output sheet.
    interface.JPG

    3. Output sheet: This sheet is the place where the user gets his output based on his input in drop down menu. It should show only the activites and groups which is applicable for that project category and status. He should be able to print it and mark some dates on it as shown in the image.
    output.JPG



    Also Please find attached the excel file which I want to automate. Please help to make it work. Excel automation help .xlsx
    Last edited by nathanmrs; 10-22-2013 at 10:34 AM. Reason: pressed enter by mistake

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    It doesn't help that you have used merged cells, but I'll try and get round that.

    I'll take a detailed look at this in the evening, after I've had something to eat.

    Pete

  9. #9
    Registered User
    Join Date
    10-22-2013
    Location
    germany
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    Thank you Pete..

    Appreciate that..

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Create a list in the output sheet by picking data from database, based on a cell value

    I've had to get rid of your merged cells in columns A and B, and replace them with individual values in each cell. However, I've applied conditional formatting to the cells so that it looks very similar to what you had before. I've put this formula in K3 of the Database sheet:

    =IF(OR('Interface sheet'!$B$4="",'Interface sheet'!$D$4=""),"-",IF(INDEX('Database sheet'!D:I,0,MATCH('Interface sheet'!$B$4,'Database sheet'!$D$1:$I$1,0)+MATCH('Interface sheet'!$D$4,'Database sheet'!$D$2:$E$2,0)-1)="x",MAX(K$2:K2)+1,"-"))

    and copied this down beyond your data. This helper column identifies the records that match the criteria set on the Interface sheet and gives them a unique sequential number.

    On the Output sheet I've set up a table below yours and put this formula in F19:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and copied it down. This determines the row(s) where the matching records occur on the Database sheet. Then I have this formula in A19:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    which can be copied across into B19:C19 - it retrieves the appropriate data from the row given in column F. This row of formulae can then be copied down as far as you need.

    I've also applied conditional formatting to the cells in columns A and B to try to mimic your merged cells. You can delete your example table on this sheet if you want to move the dynamic one further up - the formulae should adjust automatically.

    I'm not sure why you have set it up with criteria in a different sheet - it is a bit awkward to go to the Interface sheet to set the criteria and then click on the Output sheet to see the results. You could easily put the drop-downs to set the criteria at the top of the Output sheet, so that you could see the results straightaway.

    Anyway, hope this helps.

    Pete

    P.S. If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete
    Attached Files Attached Files

+ 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. How to create a database-like output
    By Tom_Swift in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-19-2013, 06:18 AM
  2. Replies: 6
    Last Post: 08-07-2012, 04:35 PM
  3. Create custom output based upon part of a cell's data
    By HKUSP45C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2011, 12:39 PM
  4. Trying to create a list from a database based on a letter placed in 1 cell
    By mrgillus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2009, 09:33 AM
  5. Create List based on cell data
    By CWatsonJr in forum Excel General
    Replies: 3
    Last Post: 09-20-2005, 02:10 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