Returning values if cells in array contain specific text

keiranwyllie

New Member
Joined
May 12, 2017
Messages
47
G'Day everyone,

I hope I can explain this one well enough because I haven't found any helpful hints/clues as yet.

I have a training spreadsheet with two worksheets. One sheet is a matrix (Matrix worksheet.png) of courses/course descriptions and employed positions. There's an area on that sheet to assign training as either Essential or Desirable, represented by an 'E' or 'D' respectively. This is just a basic sheet.

The second sheet (Training Captured.png) is intended to then capture the training identified as 'E' or 'D' and transpose the employed position and course description data automatically, based on where the 'Es' and 'Ds' are.

I feel this could get out of hand very easily because as 'Es' and 'Ds' are changed, there's potential for blank rows. I see this can all be solved with vba but I'm kind of lost as to where to start.

Caveat - my current version of this spreadsheet can handle this manually meaning I look at the matrix, then go to the other sheet and manually add the data. I was just hoping I might be able to do this automatically.

Any help will be greatly appreciated.
 

Attachments

  • Matrix worksheet.PNG
    Matrix worksheet.PNG
    29.9 KB · Views: 24
  • Training Captured.PNG
    Training Captured.PNG
    18.6 KB · Views: 24
I am not clear what you are saying. Pl post pictures of what you do in data and what is the expected result.

Here goes. If the Matrix entries look like this:
Analysis Doc.xlsm
ABCDEFGHIJKLM
2Course / PositionPosition 1Position 2Position 3Position 4Position 5Position 6Position 7Position 8Position 9Position 10Position 11Position 12
3TrainingEssential/Desireable or otherwise trained
4Course 1EE
5Course 2E
6Course 3EEE
7Course 4
8Course 5E
Matrix


I get the that then allows me to manually add data into columns D, G, H, & I (highlighted in light blue)(J is Conditionally formatted):
Analysis Doc.xlsm
ABCDEFGHIJ
3PositionDesignationPosition NumberActivity Alignment or Business NeedCourse TitleDescriptionTraining CompleteAvailabilityProvided by (Organisation)Development or Training Req'd
4Position 2Ms597776Business ProcessCourse 2Course description 2YesInternalRTO 1
5Position 4Mrs403293LeadershipCourse 1Course description 1NoExternalRTO 2
6Position 4Mrs403293CommercialCourse 3Course description 3NoInternalRTO 3
7Position 6Ms573998GeneralCourse 5Course description 5YesInternalRTO 4
8Position 8Mrs570948CommercialCourse 3Course description 3YesExternalRTO 3
9Position 9Mr107775LeadershipCourse 1Course description 1YesExternalRTO 2
10Position 10Mr403387CommercialCourse 3Course description 3NoExternalRTO 3
Training & Gap Analysis


Now if I remove some of the 'Es' from the Matrix sheet:
Analysis Doc.xlsm
ABCDEFGHIJKLM
2Course / PositionPosition 1Position 2Position 3Position 4Position 5Position 6Position 7Position 8Position 9Position 10Position 11Position 12
3TrainingEssential/Desireable or otherwise trained
4Course 1EE
5Course 2
6Course 3
7Course 4
8Course 5E
Matrix


The data in columns D, G, H & I remains:
Analysis Doc.xlsm
ABCDEFGHIJ
3PositionDesignationPosition NumberActivity Alignment or Business NeedCourse TitleDescriptionTraining CompleteAvailabilityProvided by (Organisation)Development or Training Req'd
4Position 4Mrs403293Business ProcessCourse 1Course description 1YesInternalRTO 1
5Position 6Ms573998LeadershipCourse 5Course description 5NoExternalRTO 2
6Position 9Mr107775CommercialCourse 1Course description 1NoInternalRTO 3
7   General  YesInternalRTO 4
8   Commercial  YesExternalRTO 3
9   Leadership  YesExternalRTO 2
10   Commercial  NoExternalRTO 3
Training & Gap Analysis


Meaning if I now made further changes in the 'Matrix' sheet, that old data has to be manually removed.
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top