Annoyed i cant do this....

dantheram

Board Regular
Joined
Aug 27, 2010
Messages
192
Office Version
  1. 365
Platform
  1. Windows
hi all - really annoyed i can't figure this one out in my head as i know it's in there somewhere, anyhow -

I want the column "Missing Elements" to concatenate all the missing elements, so either; vision, skill, incentive, resources, plan.

if the flag cell contains a "1" this means the element is present, a "0" means it is not - so the formula needs to go to each cell and return the corresponding value for each "0" and present these, concatenated, in the "missing elements" column. so, for the below, the first row would read "None" and the second row would read "Skill - Resources"

Vision FlagSkill FlagIncentive FlagResources FlagPlan FlagOverall Change ScoreCombined Change ProfileMissing Elements
111115CHANGE
101013- - - - ANXIETY - - - FRUSTRATION - -

thanks in advance
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
try:

Excel Formula:
=TRIM(
IF(A3=0,"Vision ","")&
IF(B3=0,"Skill ","")&
IF(C3=0,"Incentive ","")&
IF(D3=0,"Resource ","")&
IF(E3=0,"Plan",""))
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 2019 or later how about
Excel Formula:
=TEXTJOIN(", ",,IF(A2:E2=0,A$1:E$1,""))
 
Upvote 0
try:

Excel Formula:
=TRIM(
IF(A3=0,"Vision ","")&
IF(B3=0,"Skill ","")&
IF(C3=0,"Incentive ","")&
IF(D3=0,"Resource ","")&
IF(E3=0,"Plan",""))
this is nearly bang on - how do i return 'none' if all cells contain "1"?
 
Upvote 0
Excel Formula:
=if(sum(A3:E3)=5,"None",TRIM(
IF(A3=0,"Vision ","")&
IF(B3=0,"Skill ","")&
IF(C3=0,"Incentive ","")&
IF(D3=0,"Resource ","")&
IF(E3=0,"Plan","")))


or to amend @Fluff 's solution:
Excel Formula:
=IF(SUM(A3:E3)=5,"None",SUBSTITUTE(TEXTJOIN(", ",,IF(A3:E3=0,A$1:E$1,""))," Flag",""))
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

If you have 2019 or later how about
Excel Formula:
=TEXTJOIN(", ",,IF(A2:E2=0,A$1:E$1,""))
hi

this one returns the 0 and 1's as below >>

Vision FlagSkill FlagIncentive FlagResources FlagPlan FlagOverall Change ScoreCombined Change ProfileMissing ElementsFluff
111115CHANGE- - - -None
101013- - - - ANXIETY - - - FRUSTRATION - -- Skill - - Resource -0, 0

Awoohaw's returns the actual missing element text - which is what i need

thanks
 
Upvote 0
What about this more compact version since you have 365? (It also presents the results as you requested)
the second row would read "Skill - Resources"

23 03 11.xlsm
ABCDEH
1Vision FlagSkill FlagIncentive FlagResources FlagPlan FlagMissing Elements
211111None
310101Skill - Resources
Missing
Cell Formulas
RangeFormula
H2:H3H2=LET(t,SUBSTITUTE(TEXTJOIN(" - ",,IF(A2:E2,"",A$1:E$1))," Flag",""),IF(t="","None",t))
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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