List a range of numbers excluding those in another column

Red over White

Board Regular
Joined
Jul 16, 2011
Messages
141
Office Version
  1. 365
Platform
  1. MacOS
I’m looking to develop a doughnut graph, but first need to get the figures in the right order.

The main area I’m struggling with is Column G. What I’m looking for is a consecutive list of numbers that omits those numbers in Column F (there will be no more than five such numbers in this column).

Should the numbers change in Column F I can alter what is in Columns H to K by macro, but if there is a formula that would be an added bonus!

Thanks

Doughnut 2.xlsx
ABCDEFGHIJ
2
3Example 10.3%121.182%43Example 221.2%
4Example 221.2%219.345%235Example 2119.3%
5Example 30.3%317.939%166Example 1417.9%
6Example 42.3%4  7Example 1 0.3%
7Example 51.1%5  8Example 3 0.3%
8Example 66.6%6  9Example 4 2.3%
9Example 71.5%7 10Example 5 1.1%
10Example 80.6%8 11Example 6 6.6%
11Example 90.5%9 12Example 7 1.5%
12Example 100.6%10 13Example 8 0.6%
13Example 116.9%11 14Example 9 0.5%
14Example 120.7%12 15Example 10 0.6%
15Example 130.5%13 17Example 11 6.9%
16Example 1417.9%14 18Example 12 0.7%
17Example 150.3%15 19Example 13 0.5%
18Example 163.2%16 20Example 15 0.3%
19Example 170.3%17 21Example 16 3.2%
20Example 181.2%18 22Example 17 0.3%
21Example 192.6%19 24Example 18 1.2%
22Example 200.8%20 25Example 19 2.6%
23Example 2119.3%21 26Example 20 0.8%
24Example 220.2%22 27Example 220.2%
25Example 230.9%23 28Example 230.9%
26Example 243.4%24 29Example 243.4%
27Example 250.3%25 30Example 250.3%
28Example 264.4%26 31Example 264.4%
29Example 270.7%27 32Example 270.7%
30Example 280.8%28 33Example 280.8%
3129 
3230 
3331
Exclusion
Cell Formulas
RangeFormula
E3:E8E3=IF(LARGE($B$3:$B$30,D3)>E$1,LARGE($B$3:$B$30,D3),"")
I3:I23I3=IFERROR(IF(INDIRECT("B"&F3)>E$1,INDIRECT("B"&F3),""),"")
H3:H5H3=IF(F3="","",INDIRECT("A"&F3))
H6:H30H6=INDIRECT("A"&SMALL($G$3:$G$27,D3))
J6:J30J6=IFERROR(IF(INDIRECT("B"&G3)<E$1,INDIRECT("B"&G3),""),"")
F3:F32F3=IFERROR(SUM(MATCH(E3,$B$3:$B$30,0)+2),"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3Cell Value<=0.15%textNO
 
Why does col G start at 3 rather than 1?
 
Upvote 0
So that it matches the row number. What I looking for is a list of row numbers that exclude the row numbers in Column F. My premise is that I can use the first number in the top formula in columns H and J and then drag the formulas down to the bottom to list all the values less than 15%. For example using 3 will bring across Example 1 (A3) and 0.3% (B3).
Regards
 
Upvote 0
Ok, how about
Excel Formula:
=WORKDAY.INTL(2,SEQUENCE(ROWS(B3:B30)),"0000000",FILTER(F3:F30,F3:F30<>""))
 
Upvote 0
I have put your formula in G3 but am getting SPILL! in return. I am a bit confused with the use of Workday.Intl as there no days but defer to your better knowledge.
 
Upvote 0
If you just want the results in cols H:J, try
Fluff.xlsm
ABCDEFGHIJ
2
3Example 10.30%121.18%2Example 221.18%
4Example 221.18%219.35%21Example 2119.35%
5Example 30.30%317.94%14Example 1417.94%
6Example 42.25%4  Example 10.30%
7Example 51.12%5  Example 30.30%
8Example 66.61%6  Example 42.25%
9Example 71.48%7 Example 51.12%
10Example 80.64%8 Example 66.61%
11Example 90.48%9 Example 71.48%
12Example 100.59%10 Example 80.64%
13Example 116.95%11 Example 90.48%
14Example 120.67%12 Example 100.59%
15Example 130.47%13 Example 116.95%
16Example 1417.94%14 Example 120.67%
17Example 150.28%15 Example 130.47%
18Example 163.16%16 Example 150.28%
19Example 170.30%17 Example 163.16%
20Example 181.18%18 Example 170.30%
21Example 192.57%19 Example 181.18%
22Example 200.81%20 Example 192.57%
23Example 2119.35%21 Example 200.81%
24Example 220.24%22 Example 220.24%
25Example 230.90%23 Example 230.90%
26Example 243.42%24 Example 243.42%
27Example 250.30%25 Example 250.30%
28Example 264.35%26 Example 264.35%
29Example 270.71%27 Example 270.71%
30Example 280.81%28 Example 280.81%
Data
Cell Formulas
RangeFormula
H3:J30H3=LET(b,B3:B30,c,F3:F30,f,FILTER(c,c<>""),r,WORKDAY.INTL(0,SEQUENCE(ROWS(b)-ROWS(f)),"0000000",f),rr,VSTACK(f,r),HSTACK(INDEX(A3:A30,rr),IF(c<>"",INDEX(b,rr),""),IF(c="",INDEX(b,rr),"")))
E3:E8E3=IF(LARGE($B$3:$B$30,D3)>E$1,LARGE($B$3:$B$30,D3),"")
F3:F5F3=IFERROR(SUM(MATCH(E3,$B$3:$B$30,0)),"")
F6:F30F6=IFERROR(SUM(MATCH(E6,$B$3:$B$30,0)+2),"")
Dynamic array formulas.
 
Upvote 0
Solution
Thanks a lot - that works - way beyond my knowledge!!

Hope you enjoyed the game on Saturday!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Fluff

I have now successfully transferred your wonderful formula onto the intended sheet. Going back to the sheet that my XL2BB was based on, when I select H3:J30 and then select the doughnut graph from the lower Insert option, the cells in H3:I5 are not selected. Any thoughts?
 
Upvote 0

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