If, and, vlook up?

Allie14

New Member
Joined
Sep 25, 2017
Messages
3
Raw Data below:
I need to create a report that shows:
Till ID, Sales Person and Time of first sale.
I have used MID to extract the till number and then used IF(AND ..... If till number = 1629 and Column C = sales then return time in column B but this has failed miserably.
I want to show that 1629 - James Best, made his first sale at 12:00:54, whereas 1642 - Sally James, made her first sale at 13:13:56.
I have around 200 sales people to show data for and it's too time consuming to do it manually.

Would really appreciate some help ....

ABCDE
Sales Person & Till Number: 1629 - James Best
Run Report Interval: 19/09/2017 18:00:54
12:00:54Sale
12:00:54Sale
12:01:11Refund
12:33:56Sale
12:34:23Exchange
12:46:59Sale
12:48:26Sale
13:02:25Refund
13:02:25Refund
13:05:05Sale
13:05:05Exchange
13:05:06Sale
Sales Person & Till Number: 1642 - Sally James
Run Report Interval: 19/09/2017 18:00:54
12:00:31Refund
12:00:49Refund
13:01:11Exchange
13:13:56Sale
13:34:23Sale
12:46:59Sale
<colgroup><col width="70" style="width: 53pt;"> <col width="103" style="width: 77pt; mso-width-source: userset; mso-width-alt: 3766;"> <col width="70" style="width: 53pt;" span="3"> <tbody> </tbody>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I am not sure if this is a probelm. But vlookup works from left to right so rearrange your data to have transacition type on the left and date on the right - otherwise use INDEX and MATCH functions combination to go from right to left.

Besides if the number of transacions differs from person to person you might need some macro to do it efficiently. You won't be able just to populate the formulas down.

Should you have any questions please ask.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,719
Messages
6,126,432
Members
449,314
Latest member
MrSabo83

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