Stacking numbers

Highworld

New Member
Joined
Jan 31, 2023
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hello, Not sure how to label this one. I am wondering if there is a way or another formula where you can stack a number such as showing 1, 2, 3, 4 (as Cell e10 is showing) but still have those who up in different columns such as the spread sheet attached. Trying to make it a smaller document without additional copying lines.


Book1.xlsx
ABCDEFGHI
1
2
3JANUARY
4WEEK 1WEEK 2WEEK 3WEEK 4
5#$#$#$#$
62$329,6520$329,6520$329,6520$0
7
8
9NumberAmountNameWeekClosed
10?????$1,000.00John1, 2, 3,4
11?????$10,000.00Larry1
12????$10,000.00Jim1
13????$1,111.00Larry2
14???$1,112.00Jim2
15????$12,365.00Larry3
16????$12,346.00Jim3
17???$12,354.00Larry4
18???$12,325,436.00Jim4
19
Sheet1
Cell Formulas
RangeFormula
B6B6=COUNTIF(E10:E18,1)
D6D6=COUNTIF(G10:G18,2)
F6F6=COUNTIF(G10:G18,3)
H6H6=COUNTIF(G10:G18,4)
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
What you want to do is not clear. You can combine 1,2,3,4 in a cell, but what logic would lead to that? And if that is done, then the COUNTIF formulas will not deliver the correct results. For example, see the COUNTIF(xxx,1), which returns 2, because it "sees" only two cells that equal 1. The John 1,2,3,4 cell is not counted.
 
Upvote 0
What you want to do is not clear. You can combine 1,2,3,4 in a cell, but what logic would lead to that? And if that is done, then the COUNTIF formulas will not deliver the correct results. For example, see the COUNTIF(xxx,1), which returns 2, because it "sees" only two cells that equal 1. The John 1,2,3,4 cell is not count
Would there be a formula that would work similarly to Countif in order to be able to do that, or would there be a way to combine multiple formulas that override each other, such as with Or?
 
Upvote 0
Is this what you're looking for?

Book1.xlsx
ABCDEFGHI
1
2
3JANUARY
4WEEK 1WEEK 2WEEK 3WEEK 4
5#$#$#$#$
633296523329652332965230
7
8
9NumberAmountNameWeekClosed
10?????1000John1, 2, 3,4
11?????10000Larry1
12????10000Jim1
13????1111Larry2
14???1112Jim2
15????12365Larry3
16????12346Jim3
17???12354Larry4
18???12325436Jim4
Sheet3
Cell Formulas
RangeFormula
B6B6=SUM(--NOT(ISERROR(FIND(1,$E$10:$E$18))))
D6D6=SUM(--NOT(ISERROR(FIND(2,$E$10:$E$18))))
F6F6=SUM(--NOT(ISERROR(FIND(3,$E$10:$E$18))))
H6H6=SUM(--NOT(ISERROR(FIND(4,$E$10:$E$18))))
 
Upvote 0
Is this what you're looking for?
I think those formulas are 'risky'. Consider them here

24 03 16.xlsm
BCDEFGHI
4WEEK 1WEEK 2WEEK 3WEEK 4
5#$#$#$#$
663296523329652132965230
7
8
9NumberAmountNameWeekClosed
10?????1000John1, 2, 3,4
11?????10000Larry1
12????10000Jim1
13????1111Larry2
14???1112Jim11
15????12365Larry201
16????12346Jim510
17???12354Larry4
18???12325436Jim4
Count
Cell Formulas
RangeFormula
B6B6=SUM(--NOT(ISERROR(FIND(1,$E$10:$E$18))))
D6D6=SUM(--NOT(ISERROR(FIND(2,$E$10:$E$18))))
F6F6=SUM(--NOT(ISERROR(FIND(3,$E$10:$E$18))))
H6H6=SUM(--NOT(ISERROR(FIND(4,$E$10:$E$18))))




where you can stack a number such as showing 1, 2, 3, 4 (as Cell e10 is showing)
My suggestion is below but it relies on the "stacking" of numbers being uniform. The numbers in your cell E10 are not as the red numbers above (no space before the 4 in your cell E10).
Assuming that number-stacking is uniform then you could try this. (I have changed a few of the sample values in E10:E18, including adding a space before the 4 in E10)

24 03 16.xlsm
BCDEFGHI
3JANUARY
4WEEK 1WEEK 2WEEK 3WEEK 4
5#$#$#$#$
633296523329652332965210
7
8
9NumberAmountNameWeekClosed
10?????1000John1, 2, 3, 4
11?????10000Larry1
12????10000Jim1
13????1111Larry2
14???1112Jim2
15????12365Larry3
16????12346Jim3
17???12354Larry11
18???12325436Jim11
Count (2)
Cell Formulas
RangeFormula
B6,H6,F6,D6B6=COUNT(FILTER($C10:$C18,ISNUMBER(FIND(" "&MID(B4,6,9)&","," "&$E10:$E18&",")),""))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,398
Members
449,155
Latest member
ravioli44

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