Results 1 to 8 of 8

Sorting MCQ questions alphabetically

Threaded View

  1. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Sorting MCQ questions alphabetically

    I see my mistake; the iteration is compounded the data from below. Let's go in a different direction.

    This is a little more brute force than is probably necessary but I'm not exactly known for truncation or elegance.

    =IF(OR(MID(A1,2,1)=".",NOT(EXACT(PROPER(LEFT(A1,2)),LEFT(A1,2)))),"",A1&
    IF(MID(A2,2,1)=".",A2,IF(NOT(EXACT(PROPER(LEFT(A2,2)),LEFT(A2,2))),A2,""))&" "&
    IF(MID(A3,2,1)=".",A3,IF(NOT(EXACT(PROPER(LEFT(A3,2)),LEFT(A3,2))),A3,""))&" "&
    IF(MID(A4,2,1)=".",A4,IF(NOT(EXACT(PROPER(LEFT(A4,2)),LEFT(A4,2))),A4,""))&" "&
    IF(MID(A5,2,1)=".",A5,IF(NOT(EXACT(PROPER(LEFT(A5,2)),LEFT(A5,2))),A5,""))&" "&
    IF(MID(A6,2,1)=".",A6,IF(NOT(EXACT(PROPER(LEFT(A6,2)),LEFT(A6,2))),A6,""))&" "&
    IF(MID(A7,2,1)=".",A7,IF(NOT(EXACT(PROPER(LEFT(A7,2)),LEFT(A7,2))),A7,""))&" "&
    IF(MID(A8,2,1)=".",A8,IF(NOT(EXACT(PROPER(LEFT(A8,2)),LEFT(A8,2))),A8,""))&" "&
    IF(MID(A9,2,1)=".",A9,IF(NOT(EXACT(PROPER(LEFT(A9,2)),LEFT(A9,2))),A9,""))&" "&
    IF(MID(A10,2,1)=".",A10,IF(NOT(EXACT(PROPER(LEFT(A10,2)),LEFT(A10,2))),A10,""))&" "&
    IF(MID(A11,2,1)=".",A11,IF(NOT(EXACT(PROPER(LEFT(A11,2)),LEFT(A11,2))),A11,"")))


    Plop that in B1 and copy down. It creates an error on Cushing's Syndrome because it thinks it's the start of a new sentence, but the rest of them it does perfectly. (If you uncapitalize Cushings, it works fine.) Still, with 190,000 rows it's a step in the right direction.

    concatenation from hell.xlsx
    Last edited by daffodil11; 11-08-2013 at 02:48 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula in sorting alphabetically
    By felixpanganiban in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-11-2012, 01:56 PM
  2. sorting sheets alphabetically
    By KIRSTA1967 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-23-2012, 04:05 AM
  3. Sorting SOME Worksheets Alphabetically
    By wjsok85 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2009, 10:41 AM
  4. Sorting certain sheets alphabetically
    By SOS in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2008, 11:21 AM
  5. Sorting Alphabetically
    By Jack in forum Excel General
    Replies: 1
    Last Post: 01-15-2005, 05:06 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