Excel Formula Help

Anonnymouse

New Member
Joined
Jun 28, 2023
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hello Excel Users,

I am currently using formula =FILTER(CHOOSECOLS(B3:H100,1,2,5,6,7),(E3:E100=A3)*(H3:H100<>I3)), I am wondering if I could add a expression that will count the number of times the Order# shows up and paste in cell O.

ABCDEFGHIJKLMNO
Sample DataFormula Data
Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUserNumber of Times
5128781/1/20231Err_1944200300AtlantaAtlanta9711101/8/202390010Frank2
5128781/4/20232Err_1832100105Boston4287531/10/2023899399Henry1
Err_19446548881/5/20233Err_0782400200Colton9711101/9/20231000500Frank2
6548881/6/20234Err_1480600800Delta
9711101/7/20235Err_183250100Echo
9711101/8/20236Err_194490010Frank
9711101/9/20237Err_14801090350George
4287531/10/20238Err_1944899399Henry
9711101/9/20236Err_19441000500Frank
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
In O3
Excel Formula:
=COUNTIFS(B3:B100,TAKE(J3#,,1),E3:E100,A3,H3:H100,"<>"&I3)
This applies the same filters as used to create the array in J3#.
 
Upvote 0
J3# spills bigger than shown in the example. Put the new formula further to the right - wherever J3# isn't spilling.
 
Upvote 0
The formula is working but unfortunately now it shows zero instead of showing the answer as 2 and 1
ABCDEFGHIJKLMNOPQ
1Sample DataFormula Data
2Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUserNumber of Times
35128781/1/20231Err_1944200300AtlantaAtlanta9711101/8/202390010Frank00
45128781/4/20232Err_1832100105Boston428753########899399Henry10
56548881/5/20233Err_0782400200Colton9711101/9/20231000500Frank20
6Err_19446548881/6/20234Err_1480600800Delta
79711101/7/20235Err_183250100Echo
89711101/8/20236Err_194490010Frank
99711101/9/20237Err_14801090350George
10428753########8Err_1944899399Henry
119711101/9/20236Err_19441000500Frank

1692194922956.png



Do you know what I am doing wrong?
 
Upvote 0
Take a look at my whole thing - maybe I didn't reproduce your thing the right way.

MrExcelPlayground19.xlsx
ABCDEFGHIJKLMNO
1Sample DataFormula Data
2Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUserNumber of Times
3Err_19445128781/1/20231Err_1944200300AtlantaAtlanta9711101/8/202390010Frank2
45128781/4/20232Err_1832100105Boston4287531/10/2023899399Henry1
56548881/5/20233Err_0782400200Colton9711101/9/20231000500Frank2
66548881/6/20234Err_1480600800Delta
79711101/7/20235Err_183250100Echo
89711101/8/20236Err_194490010Frank
99711101/9/20237Err_14801090350George
104287531/10/20238Err_1944899399Henry
119711101/9/20236Err_19441000500Frank
Sheet30
Cell Formulas
RangeFormula
J3:N5J3=FILTER(CHOOSECOLS(B3:H99,1,2,5,6,7),(E3:E99=A3)*(H3:H99<>I3))
O3:O5O3=COUNTIFS(B3:B100,TAKE(J3#,,1),E3:E100,A3,H3:H100,"<>"&I3)
Dynamic array formulas.
 
Upvote 1
Solution

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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