Index matching and concatenating more than one result.

Kamran01

Board Regular
Joined
Feb 10, 2017
Messages
86
Dear Experts,

Hope you all will be good.

I want failing subjects result in one cell. Failing criteria is less than 34 marks subject.

Student MATH SCIENCE PHYSICS CHEMISTRY TOTAL RESULT FAILED SUBJECTS
A 50 30 10 70 160 FAILED SCIENCE, PHYSICS
B 30 50 45 44 169 FAILED MATH

Thank advance for your prompt response,

Best Regard,
Kamran Noor
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Dear Experts,

Hope you all will be good.

I want failing subjects result in one cell. Failing criteria is less than 34 marks subject.

Student MATH SCIENCE PHYSICS CHEMISTRY TOTAL RESULT FAILED SUBJECTS
A 50 30 10 70 160 FAILED SCIENCE, PHYSICS
B 30 50 45 44 169 FAILED MATH

Thank advance for your prompt response,

Best Regard,
Kamran Noor
Can you upload your table again but in correct formatting? and so basically u want in the column of subjects to show all the subjects student has failed in one cell? So for Student A u cant science and physics in 1 cell under the column subjects?
 
Upvote 0
Actually i am unaware, how to post in cells form on this page.

Student | MATH | SCIENCE | PHYSICS | CHEMISTRY | TOTAL | RESULT | FAILED SUBJECTS
A | 50 | 30 | 10 | 70 | 160 | FAILED | SCIENCE, PHYSICS
B | 30 | 50 | 45 | 44 | 169 | FAILED | MATH

Can you please advise how to post in table form here.
 
Upvote 0
StudentMATHSCIENCEPHYSICSCHEMISTRYTOTALRESULTFAILEDSUBJECTS
A50301070160SCIENCE, PHYSICS
B30504544169MATH

<colgroup><col width="64" span="9" style="width:48pt"> </colgroup><tbody>
</tbody>

I just select my range in excel and copy and paste here
 
Upvote 0
=if(b2<35,b$1&",","")&if(c2<35,c$1&",","")&if(d2<35,d$1&",","")&if(e2<35,e$1&",","")
 
Last edited:
Upvote 0
If you have Excel Office 365 you could use the TEXTJOIN function.
This is an array formula and must be entered with CTRL-SHIFT-ENTER. Drag formla down as needed.
Excel Workbook
ABCDEFGHI
1StudentMATHSCIENCEPHYSICSCHEMISTRYTOTALRESULTFAILEDSUBJECTS
2A50301070160SCIENCE, PHYSICS
3B30504544169MATH
Sheet
 
Upvote 0
Hi,

Try this if you don't want any leading and/or trailing commas in the result:


Book1
ABCDEFGH
1StudentMATHSCIENCEPHYSICSCHEMISTRYTOTALRESULTFAILED SUBJECTS
2A50301070160SCIENCE, PHYSICS
3B30504544169MATH
Sheet486
Cell Formulas
RangeFormula
H2=MID(IF(B2<34,", "&B$1,"")&IF(C2<34,", "&C$1,"")&IF(D2<34,", "&D$1,"")&IF(E2<34,", "&E$1,""),3,99)
 
Upvote 0

Forum statistics

Threads
1,215,056
Messages
6,122,907
Members
449,096
Latest member
dbomb1414

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