Need help with Query formula

zazybang

New Member
Joined
May 6, 2018
Messages
23
I have lots of data one one spreadsheet, the goal is to make a query formula that will search for all the responses a person made based on a cells critera. EX:
Sheet 1
Name:Response:
XA
YB
XC
XD
YE
ZF

<tbody>
</tbody>

Sheet 2
Query FormulaCriteria (name): X
A
C
D

<tbody>
</tbody>
The Query formula searched for all responses made by X on sheet 1 then places them on Sheet 2. How would I make such a formula?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
I have lots of data one one spreadsheet, the goal is to make a query formula that will search for all the responses a person made based on a cells critera. EX:
Sheet 1
Name:Response:
XA
YB
XC
XD
YE
ZF

<tbody>
</tbody>

Sheet 2
Query FormulaCriteria (name): X
A
C
D

<tbody>
</tbody>
The Query formula searched for all responses made by X on sheet 1 then places them on Sheet 2. How would I make such a formula?

Is the result you're looking for like this?

Query FormulaCriteria (name): X
AX
CX
DX

<tbody>
</tbody>


or this:

NameQuery Formula
XA,C,D
YB,E
ZF

<tbody>
</tbody>
 
Upvote 0
The first would just be an index/match formula, in the above example, using Query Formula as A1, and the data is on sheet named 'Data', with Name being A1

=index(Data!A:A, match(a2,data!B:B,0))

let me get a few thing sfinished and i will post the other formula, you just need to concatenate, but i need coffee before using that many commas.
 
Upvote 0

Forum statistics

Threads
1,215,298
Messages
6,124,116
Members
449,142
Latest member
championbowler

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