Excel Formula Help

Anonnymouse

New Member
Joined
Jun 28, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hey Good Afternoon,

I am stuck in the mud here.

I am trying to pull the row of information excluding column D and E based on the specific text on cell A4. I have used Index and match formula but keep running into a REF# error.

Any help on this would be appreciated.

Thank you.

ABCDEFGHIJKLMN
Sample DataFormula Data
Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUser
Err_19445128781/1/20231Err_1944200300Atlanta
512878​
1/1/2023​
200​
300​
Atlanta
5128781/4/20232Err_1832100105Boston
971110​
1/8/2023​
900​
10​
Frank
6548881/5/20233Err_0782400200Colton
428753​
1/10/2023​
899​
399​
Henry
6548881/6/20234Err_1480600800Delta
9711101/7/20235Err_183250100Echo
9711101/8/20236Err_194490010Frank
9711101/9/20237Err_14801090350George
4287531/10/20238Err_1944899399Henry
 
Last edited by a moderator:

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
How about
Fluff.xlsm
ABCDEFGHIJKLMN
1Sample DataFormula Data
2Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUser
3Err_194451287801/01/20231Err_1944200300Atlanta51287801/01/2023200300Atlanta
451287801/04/20232Err_1832100105Boston97111001/08/202390010Frank
565488801/05/20233Err_0782400200Colton42875301/10/2023899399Henry
665488801/06/20234Err_1480600800Delta
797111001/07/20235Err_183250100Echo
897111001/08/20236Err_194490010Frank
997111001/09/20237Err_14801090350George
1042875301/10/20238Err_1944899399Henry
11
Data
Cell Formulas
RangeFormula
J3:N5J3=FILTER(CHOOSECOLS(B3:H100,1,2,5,6,7),E3:E100=A3)
Dynamic array formulas.
 
Upvote 0
How about this?

Prcatice.xlsx
ABCDEFGHIJKLMN
1Sample DataFormula Data
2Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUser
3Err_19445128781/1/20231Err_1944200300Atlanta3/17/33041/1/2023200300Atlanta
45128781/4/20232Err_1832100105Boston10/21/45581/8/202390010Frank
56548881/5/20233Err_0782400200Colton42875344936899399Henry
66548881/6/20234Err_1480600800Delta
79711101/7/20235Err_183250100Echo
89711101/8/20236Err_194490010Frank
99711101/9/20237Err_14801090350George
10428753######8Err_1944899399Henry
Sheet5
Cell Formulas
RangeFormula
J2:N5J2=LET(cols,{1,2,5,6,7},d,CHOOSECOLS(FILTER(B3:H10,E3:E10=A3),cols),h,CHOOSECOLS(B2:H2,cols),VSTACK(h,d))
Dynamic array formulas.
 
Upvote 0
=FILTER(CHOOSECOLS(B3:H100,1,2,5,6,7),E3:E100=A3)
Thank you Fluff, This worked perfectly.

I am wondering if i could add a filter in the formula that excludes a specific user? for example exclude atlanta
 
Upvote 0
How about
Fluff.xlsm
ABCDEFGHIJKLMN
1Sample DataFormula Data
2Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUser
3Err_194451287801/01/20231Err_1944200300AtlantaAtlanta97111001/08/202390010Frank
451287801/04/20232Err_1832100105Boston42875301/10/2023899399Henry
565488801/05/20233Err_0782400200Colton
665488801/06/20234Err_1480600800Delta
797111001/07/20235Err_183250100Echo
897111001/08/20236Err_194490010Frank
997111001/09/20237Err_14801090350George
1042875301/10/20238Err_1944899399Henry
11
Data
Cell Formulas
RangeFormula
J3:N4J3=FILTER(CHOOSECOLS(B3:H100,1,2,5,6,7),(E3:E100=A3)*(H3:H100<>I3))
Dynamic array formulas.
 
Upvote 1
Solution
How about
Fluff.xlsm
ABCDEFGHIJKLMN
1Sample DataFormula Data
2Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUser
3Err_194451287801/01/20231Err_1944200300AtlantaAtlanta97111001/08/202390010Frank
451287801/04/20232Err_1832100105Boston42875301/10/2023899399Henry
565488801/05/20233Err_0782400200Colton
665488801/06/20234Err_1480600800Delta
797111001/07/20235Err_183250100Echo
897111001/08/20236Err_194490010Frank
997111001/09/20237Err_14801090350George
1042875301/10/20238Err_1944899399Henry
11
Data
Cell Formulas
RangeFormula
J3:N4J3=FILTER(CHOOSECOLS(B3:H100,1,2,5,6,7),(E3:E100=A3)*(H3:H100<>I3))
Dynamic array formulas.
[/RANGE
Cell Formulas
RangeFormula
Dynamic array formulas.
Thank you Fluff. Sorry this is my last question I promise.. Could I also add how many times the order number is showing up on my list as so order 971110. Thank you.
ABCDEFGHIJKLMNO
Sample DataFormula Data
Order#DateNoError CodeOld PriceNew PriceUserOrder#DateOld PriceNew PriceUserNumber of Times
512878​
1/1/2023​
1​
Err_1944
200​
300​
AtlantaAtlanta
1/8/2023​
900​
10​
Frank
2​
512878​
1/4/2023​
2​
Err_1832
100​
105​
Boston
428753​
1/10/2023​
899​
399​
Henry
1​
Err_1944
654888​
1/5/2023​
3​
Err_0782
400​
200​
Colton
971110​
1/9/2023​
1000​
500​
Frank
2​
654888​
1/6/2023​
4​
Err_1480
600​
800​
Delta
971110​
1/7/2023​
5​
Err_1832
50​
100​
Echo
971110​
1/8/2023​
6​
Err_1944
900​
10​
Frank
971110​
1/9/2023​
7​
Err_1480
1090​
350​
George
428753​
1/10/2023​
8​
Err_1944
899​
399​
Henry
971110​
1/9/2023​
6​
Err_1944
1000​
500​
Frank
 
Upvote 0
As this is now a significantly different question, it needs a new thread. Thanks
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,165
Messages
6,123,390
Members
449,098
Latest member
ArturS75

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