VLookup

mulholm

New Member
Joined
Jul 2, 2018
Messages
49
Is there a way to do V Lookup with multiple parameters.

I will try explain as best as i can below what i'm looking for:

[TABLE="width: 446"]
<tbody>[TR]
[TD]Paid Breaks[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name[/TD]
[TD]Break Time Available[/TD]
[TD]Break Time Used[/TD]
[/TR]
[TR]
[TD]Agent1[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Agent2[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


this is what appears on sheet1

On sheet 2 i have the following data:

[TABLE="width: 488"]
<tbody>[TR]
[TD]Agent[/TD]
[TD]Category[/TD]
[TD]Activity[/TD]
[TD]Duration Mins[/TD]
[TD]Duration (Secs)[/TD]
[TD]Duration%[/TD]
[/TR]
[TR]
[TD]Agent1[/TD]
[TD]ASH[/TD]
[TD]Unpaid Break[/TD]
[TD="align: right"]420[/TD]
[TD="align: right"]25,200[/TD]
[TD="align: right"]9.38%[/TD]
[/TR]
[TR]
[TD]Agent1[/TD]
[TD]OffLine[/TD]
[TD]Paid Break[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]227[/TD]
[TD="align: right"]0.08%[/TD]
[/TR]
</tbody>[/TABLE]

On sheet1 i have used V Look up function to search for "Agent1" and return data from column "5" which is the duration of the code they used and put it in "Break Time Used" column. However i am looking to only retrieve for "Paid Break" only which is where it gets confusing.

Is there a way to use V Look up and ignore "Unpaid Break" and only return "Paid Break"
 
Last edited:

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try,

=SUMPRODUCT(($A$2:$A$3=A9)*($C$2:$C$3="Paid Break")*$E$2:$E$3)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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