Formula to copy a cell (word) if another cell is 0 and create a list from the words

jbillyo

New Member
Joined
Jan 28, 2019
Messages
23
I have a spreadsheet with xlookup to generate a total using a dropdown menu for a spelling test.
On the sheet, I have a list of 103 words and I have used 1 for right, 0 for wrong.
What I now want to do is use the value 0 (wrong answer) to generate a list of words when a name is selected from the dropdown menu.
I assume this is possible but it is beyond me.

Thanks in advance,
John
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
It depends on how your sheet is set up, but something like this maybe:

Book1
ABCDEFGH
1NameWordAnnBobCalDiana
2Caldog1110
3cat1010
4Misspelled wordspachyderm1101
5pachydermorca1001
6orcamouse1110
7capybaracapybara1001
8moose1110
Sheet4
Cell Formulas
RangeFormula
A5:A7A5=FILTER(C2:C8,INDEX(E2:H8,0,MATCH(A2,E1:H1,0))=0)
Dynamic array formulas.
 
Upvote 0
I hope this makes it a little clearer
 

Attachments

  • Screenshot 2021-11-23 at 19.27.58.png
    Screenshot 2021-11-23 at 19.27.58.png
    191.8 KB · Views: 5
  • Screenshot 2021-11-23 at 19.36.50.png
    Screenshot 2021-11-23 at 19.36.50.png
    157.6 KB · Views: 5
Upvote 0
Thank you for the quick reply Eric.
I have tried to substitute the formula with what I think is the same information but it comes up with an error.
Any ideas?

=FILTER('Autumn 1 2021'!B4:B106,INDEX('Autumn 1 2021'!'Autumn 1 2021'!'Autumn 1 2021'!:'Autumn 1 2021'!C4:R106,0,MATCH('Pupil Analysis'!A1:B1,'Autumn 1 2021'!C3:R3,0))=0)
 
Upvote 0
I tried to replicate your workbook based on the pictures, but it took a bit. In the future, consider using the XL2BB tool (see my signature or the menu in the reply box), to make it easier to copy and test with.

But if this is a reasonable reproduction of your Autumn 1 2021 sheet:

Book1
ABCDEF
1
2Oak 21/22
3Year 5/6 CEW Analysis SheetABCD
41accommodate1011
52accompany1001
63according1011
74achieve0001
85aggressive0011
96amateur1000
107ancient1011
118apparent0011
129appreciate0011
1310attached0011
Autumn 1 2021


then you should be able to do something like this:

Book1
ABCDEFGH
1C
2TermScore
3Autumn 1 20217accompanyachieveamateur000
4Autumn 2
5Spring 1
6Spring 2
7Summer 1
8Summer 2
9
Pupil Analysis
Cell Formulas
RangeFormula
B3B3=SUM(INDEX(INDIRECT("'"&A3&"'!C3:R106"),0,MATCH($A$1,INDIRECT("'"&A3&"'!C3:R3"),0)))
C3:CT3C3=TRANSPOSE(FILTER(INDIRECT("'"&A3&"'!B4:B106"),INDEX(INDIRECT("'"&A3&"'!C4:R106"),0,MATCH($A$1,INDIRECT("'"&A3&"'!C3:R3"),0))=0))
Dynamic array formulas.


Note that I put the whole sheet name in A3, so that the formulas could use it. You can just drag down the formulas if all the Term names are the sheet names. Also, the 0's running off to the right should not be a problem if you use the formula on your whole sheet, not just the subset I created.

See if this works for you.
 
Upvote 0
Solution
Hi Eric,
Sorry to ask something else but is there a way that I can take the list of incorrect words and create either a multiple cell block e.g. 21 x 5 array of cells (incase all 103 words are incorrect) or in a text box floating above the spreadsheet.
I could then print out on an A4 sheet rather than multiple pages.
Thanks in advance
John
 
Upvote 0
Possibly. I set it up the way I did so that if you have multiple sheets (Autumn 1, Autumn 2, Spring 1, Spring 2, etc.), you could show all the words for all the sheets. If you put them in a block, then you'd have to rearrange things. Maybe like this:

Book1
ABCDEFGHIJKLMNO
1C
2TermScoreTermScore
3Autumn 1 20217accompanyachieveamateur00Autumn 2 20211saltpepperoreganothymemace
400000cinnamongarliconionsaffron0
50000000000
60000000000
70000000000
80000000000
90000000000
100000000000
110000000000
120000000000
130000000000
140000000000
150000000000
160000000000
170000000000
180000000000
190000000000
200000000000
210000000000
22000000
2300
24Spring 1Spring 2
25
26
27Summer 1Summer 2
Pupil Analysis
Cell Formulas
RangeFormula
B3,J3B3=SUM(INDEX(INDIRECT("'"&A3&"'!C3:R106"),0,MATCH($A$1,INDIRECT("'"&A3&"'!C3:R3"),0)))
C3:G23,K3:O23C3=IFERROR(INDEX(FILTER(INDIRECT("'"&A3&"'!B4:B106"),INDEX(INDIRECT("'"&A3&"'!C4:R106"),0,MATCH($A$1,INDIRECT("'"&A3&"'!C3:R3"),0))=0),SEQUENCE(21,5)),"")
Dynamic array formulas.


Again, you won't see the 0s on a full sheet, but you'll have to leave room for them. Or maybe just put a drop-down in A3 with the sheet names.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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