Is it possible to get a Value based on 2 trues ?

marlina

New Member
Joined
Apr 17, 2018
Messages
24
[TABLE="width: 223"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Client Name[/TD]
[TD]Service[/TD]
[TD]Orders[/TD]
[/TR]
[TR]
[TD]Kevin[/TD]
[TD]Service 1[/TD]
[TD]Orders 1[/TD]
[/TR]
[TR]
[TD]Kevin[/TD]
[TD]Service 2[/TD]
[TD]Orders 2[/TD]
[/TR]
[TR]
[TD]Kevin[/TD]
[TD]Service 3[/TD]
[TD]orders 3[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]Service 2[/TD]
[TD]Oeders 1
[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 221"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Client name[/TD]
[TD]Service [/TD]
[TD]order[/TD]
[/TR]
[TR]
[TD]Kevin[/TD]
[TD]Service 3[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I need the order based on Name AND service.
Thank you in advance!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Assuming your data begins at cell A1 and you your search values at A8 and B8 and your result in C8 input this where you want your order result

=INDEX(C1:C5,MATCH(A8&B8,A1:A5&B1:B5,0))

ALSO: This is an array formula so instead of just hitting enter make sure you do CTRL + SHIFT + ENTER when you are inside the formula bar
 
Upvote 0
Assuming your data begins at cell A1 and you your search values at A8 and B8 and your result in C8 input this where you want your order result

=INDEX(C1:C5,MATCH(A8&B8,A1:A5&B1:B5,0))

ALSO: This is an array formula so instead of just hitting enter make sure you do CTRL + SHIFT + ENTER when you are inside the formula bar


You are my new favourite person.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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