IF help

markdoc5

New Member
Joined
Jan 27, 2021
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Not sure if what I'm looking for is possible with a formula or needs a script involved.

I have a simple enough sheet, with lets say 8 people and 15 questions. if they get a questions wrong it shows as trend as per the sample provided, is it possible to show bellow, who got the question wrong ? for example Person 1&5 have a trend on Q12 etc ?


Book1
BCDEFGHIJKLMNOPQ
3Q1Q2Q3Q4Q5Q6Q7Q8Q9Q10Q11Q12Q13Q14Q15
4Person1No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
5Person2No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
6Person3No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
7Person4No TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo Trend
8Person5No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
9Person6No TrendNo TrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo Trend
10Person7No TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
11Person8No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C4:Q11Cell Valuebeginning with "Trend"textNO
C4:Q11Cell Valuebeginning with "No"textNO
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
A bit of a guess, as the question isn't clear (and also assuming you have the new BYROW and BYCOL functions?)

Summary by person: =LET(w,BYROW(IF(C4:Q11="Trend",C3:Q3,""),LAMBDA(r,TEXTJOIN(", ",,r))),FILTER(B4:B11&": "&w,LEN(w)))

Summary by Q'n: =LET(w,BYCOL(IF(C4:Q11="Trend",B4:B11,""),LAMBDA(r,TEXTJOIN(", ",,r))),TRANSPOSE(FILTER(C3:Q3&": "&w,LEN(w))))
 
Upvote 0
A bit of a guess, as the question isn't clear (and also assuming you have the new BYROW and BYCOL functions?)

Summary by person: =LET(w,BYROW(IF(C4:Q11="Trend",C3:Q3,""),LAMBDA(r,TEXTJOIN(", ",,r))),FILTER(B4:B11&": "&w,LEN(w)))

Summary by Q'n: =LET(w,BYCOL(IF(C4:Q11="Trend",B4:B11,""),LAMBDA(r,TEXTJOIN(", ",,r))),TRANSPOSE(FILTER(C3:Q3&": "&w,LEN(w))))
Thanks Stephen, i think your on to a winner, I do have the BYROW functions however the formula give me a error :(
 
Upvote 0
ABCDEFGHIJKLMNOPQ
1
2
3Q1Q2Q3Q4Q5Q6Q7Q8Q9Q10Q11Q12Q13Q14Q15
4Person1No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
5Person2No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
6Person3No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
7Person4No TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo Trend
8Person5No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
9Person6No TrendNo TrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo Trend
10Person7No TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
11Person8No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
12
13
14Wrong
15Person4: Q4, Q11
16Person6: Q7, Q12
17Person7: Q4
18
19
20Wrong
21Q4: Person4, Person7
22Q7: Person6
23Q11: Person4
24Q12: Person6
Sheet1
Cell Formulas
RangeFormula
B15:B17B15=LET(w,BYROW(IF(C4:Q11="Trend",C3:Q3,""),LAMBDA(r,TEXTJOIN(", ",,r))),FILTER(B4:B11&": "&w,LEN(w)))
B21:B24B21=LET(w,BYCOL(IF(C4:Q11="Trend",B4:B11,""),LAMBDA(r,TEXTJOIN(", ",,r))),TRANSPOSE(FILTER(C3:Q3&": "&w,LEN(w))))
Dynamic array formulas.
 
Upvote 0
Solution
ABCDEFGHIJKLMNOPQ
1
2
3Q1Q2Q3Q4Q5Q6Q7Q8Q9Q10Q11Q12Q13Q14Q15
4Person1No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
5Person2No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
6Person3No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
7Person4No TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo Trend
8Person5No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
9Person6No TrendNo TrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendTrendNo TrendNo TrendNo Trend
10Person7No TrendNo TrendNo TrendTrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
11Person8No TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo TrendNo Trend
12
13
14Wrong
15Person4: Q4, Q11
16Person6: Q7, Q12
17Person7: Q4
18
19
20Wrong
21Q4: Person4, Person7
22Q7: Person6
23Q11: Person4
24Q12: Person6
Sheet1
Cell Formulas
RangeFormula
B15:B17B15=LET(w,BYROW(IF(C4:Q11="Trend",C3:Q3,""),LAMBDA(r,TEXTJOIN(", ",,r))),FILTER(B4:B11&": "&w,LEN(w)))
B21:B24B21=LET(w,BYCOL(IF(C4:Q11="Trend",B4:B11,""),LAMBDA(r,TEXTJOIN(", ",,r))),TRANSPOSE(FILTER(C3:Q3&": "&w,LEN(w))))
Dynamic array formulas.
Stephen, you are a gentleman of the highest order sir !!
thank you so much!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,323
Members
452,635
Latest member
laura12345

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