+ Reply to Thread
Results 1 to 11 of 11

Importing text mcq questions to excel table

  1. #1
    Registered User
    Join Date
    01-06-2018
    Location
    alex
    MS-Off Ver
    Microsoft Excel 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit
    Posts
    45

    Importing text mcq questions to excel table

    Hello,

    I hope this message finds you all in good health and high spirits. I?m writing today to humbly seek your expertise on a topic that has left me somewhat perplexed.

    I need to import questions from a text files and the format of the questions is as follow

    Please Login or Register  to view this content.
    I've attached the excel file that I need the questions to be imported into. and added a question manually in the first row.
    Hope you can take a look and guide me how to fix this. (I have many text files with100s of questions)

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,431

    Re: Importing text mcq questions to excel table

    Administrative Note:

    Is your forum profile showing the version of Excel that you need this to work for?

    Members will tailor the solutions they offer to the version of Office (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent versions of Excel are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the release number in your profile (e.g. MS365 Version 2211). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-06-2018
    Location
    alex
    MS-Off Ver
    Microsoft Excel 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit
    Posts
    45

    Re: Importing text mcq questions to excel table

    Thanks for the note, I forgot to mention the version i'm using. sorry about that.

    I've updated my profile accordingly.

    My version is Microsoft® Excel® 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,431

    Re: Importing text mcq questions to excel table

    Your attachments raise more questions than answers.

    1. Where is the other data coming from (e.g. uncategorised) that isn't in the .txt file?
    2. The .txt file has only questions with four answers, but the Excel file has different results - what are the minimum and maximum number of possible asnwers per question?

  5. #5
    Registered User
    Join Date
    01-06-2018
    Location
    alex
    MS-Off Ver
    Microsoft Excel 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit
    Posts
    45

    Re: Importing text mcq questions to excel table

    Thanks for your msg. and sorry for not making things clear for the second time.

    The questions was exported from our college old database. I think it was MySQL tables
    and when exported it came this way. just 6 lines
    1st line is the question
    2 to 5 are the choices
    6th line is the correct answer

    the excel file is to import the questions to another application.
    and this format was provided by the software.

    I don't need the category or explanation columns, however i can't delete it from the file. so i'm leaving it as uncategorised

    Hope this clarify things, and sorry for missing these points.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,431

    Re: Importing text mcq questions to excel table

    No, it doesn't answer my questions fully.

    Where do these come from?

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    F
    G
    3
    10+20 Uncategorized
    1
    30 40 50
    4
    150/3 Uncategorized
    2
    60 50 100
    Sheet: Quiz questions

  7. #7
    Registered User
    Join Date
    01-06-2018
    Location
    alex
    MS-Off Ver
    Microsoft Excel 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit
    Posts
    45

    Re: Importing text mcq questions to excel table

    apologies again.. plz excuse my oversight.

    as mentioned thr excel file was supplied by the new application as a guide how the questions should be construed.
    they had 3 questions as guidance for us to fill it.
    I changed the first one as you can see in the attached file. but forgot to remove the 2nd and 3rd.

    TLDR.. its just example to fill in the file.

    Sorry for the confusion.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,431

    Re: Importing text mcq questions to excel table

    I'm not confident that I understand fully what's required. Samples that don't reflect reality are at best misleading, so I'll leave it to someone who thinks they are sure of what you want.

  9. #9
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,014

    Re: Importing text mcq questions to excel table

    Try this,

    Please Login or Register  to view this content.
    1. Change your file location.
    2. Alt+F8 to execute
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-06-2018
    Location
    alex
    MS-Off Ver
    Microsoft Excel 2019 MSO (Version 2301 Build 16.0.16026.20196) 32-bit
    Posts
    45

    Re: Importing text mcq questions to excel table

    Thank you, @windknife, for providing a solution that successfully resolved my issue.

    I sincerely apologize, @AliGW, for not being able to provide more detailed information despite your efforts.

    Wishing you a pleasant day..

  11. #11
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,014

    Re: Importing text mcq questions to excel table

    You are welcome.

+ 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: 12-13-2014, 06:42 PM
  2. Importing Word table into Excel Worksheet keeping same alignment of text
    By Advancedexcel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-30-2014, 02:49 AM
  3. Replies: 2
    Last Post: 12-01-2012, 04:22 PM
  4. Importing Text (csv) table to correct database
    By climoc in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2011, 01:17 PM
  5. Excel Table Questions
    By Craxuan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2011, 12:49 AM
  6. Importing a PDF table into Excel
    By zapp7 in forum Excel General
    Replies: 5
    Last Post: 05-25-2010, 02:21 PM
  7. Replies: 3
    Last Post: 01-26-2007, 10:30 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