Find all cells starting with "SS" - Array Formula with Partial matches????

tom.walford

New Member
Joined
Nov 2, 2010
Messages
30
Hi there,

I am trying to retrieve all three of the cells in a range that start with the letters SS (Study Session). The sessions are numbered SS01 to SS30 in a much bigger sheet.

ABCDEFGHIJKLMN
1NAMENum StudyNum CareersStudy 1Study 2Study 3Mon 1Mon 2Mon 3Mon 4Mon 5Mon 6Mon 7Mon 8
2Student31SS01SS02SS0912A/Ma112AMa/1SS01SS0212C/Ph1a12C/Ph1aCSS039

<tbody>
</tbody>

Let's assume that this particular student's three study periods are on Monday (period 3,4 and 8) I would want D2, E2 and F2 to say SS01, SS02 and SS09 respectively. The rest of the timetable goes from Mon 9 through to Friday 9 in a very large worksheet. Each students study sessions are at different times with them picking up three of the sessions from the thirty available.
I have already got the counter functions in B2 and C2 to work, but cannot get the sessions to copy into the three columns to the left of the table.

I assume that this is going to need some sort of array function, but my brain is not on the same wavelength as Excel today - any help would be very much appreciated.

Many thanks

Tom.
 

Some videos you may like

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
44,731
Office Version
365
Platform
Windows
How about in D2 & dragged right
=INDEX($G2:$N2,AGGREGATE(15,6,(COLUMN($G2:$N2)-COLUMN($G2)+1)/(LEFT($G2:$N2,2)="SS"),COLUMNS($A$1:A$1)))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
44,731
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,308
Messages
5,510,523
Members
408,794
Latest member
Eddie74

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top