vlook up help

Tonyk1051

Board Regular
Joined
Feb 1, 2021
Messages
132
Office Version
  1. 2019
Platform
  1. Windows
is there a way to customize the vlook up so that when I use it ,not only only does it populate based on keysheet but
If the same user, on the same date, uses the same action type on the same vendor, they all get the number 0 in column H instead except for the line that has the earliest date. that number remains the same. See the drop box link for workbook of how it should look manually. if not a vlook up then a different formula maybe?

 
works for me, using formula as posted earlier
BUT the dates have times and so are ALL different
If you want to compare just the date without the time , then i have set a different column using INT()

see here

tester.xlsx
ABCDEFGHIJ
1user iddateday of weekactionaction typeROVendortimingdate
2mroche11/1/23 11:49 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR462567a511/1/235
3mroche11/1/23 5:06 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR462567a511/1/230
4mroche11/8/23 4:14 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR462567a511/8/235
5mroche11/9/23 11:11 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR462567a511/9/235
6mroche11/1/23 11:49 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR463075a511/1/230
7mroche11/1/23 5:06 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR463075a511/1/230
8mroche11/9/23 11:11 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR463075a511/9/230
9delaneyp10/30/23 6:56 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR454907a510/30/235
10delaneyp11/30/23 4:26 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR464807a511/30/235
11delaneyp10/30/23 6:02 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR456595a510/30/230
12delaneyp10/30/23 6:02 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR457613a510/30/230
13delaneyp10/30/23 6:02 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR458333a510/30/230
14delaneyp11/2/23 5:28 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR458333a511/2/235
15delaneyp11/3/23 9:59 AMFridayro message categoryCOLLECTIONS CONTACTED VENDOR458333a511/3/235
16mroche11/3/23 11:46 AMFridayro message categoryCOLLECTIONS CONTACTED VENDOR458349a511/3/235
17mroche11/3/23 11:46 AMFridayro message categoryCOLLECTIONS CONTACTED VENDOR458350a511/3/230
18delaneyp11/9/23 11:59 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR455384a511/9/235
19delaneyp12/7/23 5:53 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR465067a512/7/235
20delaneyp12/12/23 6:23 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR465067a512/12/235
21delaneyp10/30/23 6:05 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR456338a510/30/230
22delaneyp11/3/23 9:38 AMFridayro message categoryCOLLECTIONS CONTACTED VENDOR456338a511/3/230
data
Cell Formulas
RangeFormula
H2:H22H2=VLOOKUP(E2,keysheet!B:C,2,FALSE)
I2:I22I2=INT(B2)
J2:J22J2=IF(COUNTIFS($A$2:$A2,A2,$E$2:E2,E2,$I$2:I2,I2,$G$2:G2,G2)=1,5,0)
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
works for me, using formula as posted earlier
BUT the dates have times and so are ALL different
If you want to compare just the date without the time , then i have set a different column using INT()

see here

tester.xlsx
ABCDEFGHIJ
1user iddateday of weekactionaction typeROVendortimingdate
2mroche11/1/23 11:49 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR462567a511/1/235
3mroche11/1/23 5:06 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR462567a511/1/230
4mroche11/8/23 4:14 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR462567a511/8/235
5mroche11/9/23 11:11 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR462567a511/9/235
6mroche11/1/23 11:49 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR463075a511/1/230
7mroche11/1/23 5:06 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR463075a511/1/230
8mroche11/9/23 11:11 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR463075a511/9/230
9delaneyp10/30/23 6:56 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR454907a510/30/235
10delaneyp11/30/23 4:26 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR464807a511/30/235
11delaneyp10/30/23 6:02 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR456595a510/30/230
12delaneyp10/30/23 6:02 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR457613a510/30/230
13delaneyp10/30/23 6:02 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR458333a510/30/230
14delaneyp11/2/23 5:28 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR458333a511/2/235
15delaneyp11/3/23 9:59 AMFridayro message categoryCOLLECTIONS CONTACTED VENDOR458333a511/3/235
16mroche11/3/23 11:46 AMFridayro message categoryCOLLECTIONS CONTACTED VENDOR458349a511/3/235
17mroche11/3/23 11:46 AMFridayro message categoryCOLLECTIONS CONTACTED VENDOR458350a511/3/230
18delaneyp11/9/23 11:59 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR455384a511/9/235
19delaneyp12/7/23 5:53 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR465067a512/7/235
20delaneyp12/12/23 6:23 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR465067a512/12/235
21delaneyp10/30/23 6:05 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR456338a510/30/230
22delaneyp11/3/23 9:38 AMFridayro message categoryCOLLECTIONS CONTACTED VENDOR456338a511/3/230
data
Cell Formulas
RangeFormula
H2:H22H2=VLOOKUP(E2,keysheet!B:C,2,FALSE)
I2:I22I2=INT(B2)
J2:J22J2=IF(COUNTIFS($A$2:$A2,A2,$E$2:E2,E2,$I$2:I2,I2,$G$2:G2,G2)=1,5,0)
Yes the time stamp has to be kept
 
Upvote 0
i had trouble downloading the file - so had to copy and change the dates to UK format
anyway
does
=IF(COUNTIFS($A$2:A2,A2,$B$2:B2,B2,$E$2:E2,E2,$G$2:G2,G2)=1,5,0)
work

Book3
ABCDEFGHIJ
1user iddateday of weekactionaction typeROVendortiming
2raymart3/11/23 9:38Fridayro message categoryCOLLECTIONS CONTACTED VENDOR456338AIRSELFIE NA 555
3raymart3/11/23 9:38Fridayro message categoryCOLLECTIONS CONTACTED VENDOR456338AIRSELFIE NA 500
4raymart3/11/23 9:38Fridayro message categoryCOLLECTIONS CONTACTED VENDOR456338AIRSELFIE NA 500
5delaneyp11/27/23 11:56 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR456338AIRSELFIE NA 55
6delaneyp5/12/23 17:44weekdayro message categoryCOLLECTIONS CONTACTED VENDOR456338AIRSELFIE NA 55
7delaneyp11/12/23 12:48weekdayro message categoryCOLLECTIONS CONTACTED VENDOR456338AIRSELFIE NA 55
8delaneyp12/14/23 5:23 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR456338AIRSELFIE NA 55
9delaneyp12/12/23 18:32weekdayro message categoryCOLLECTIONS CONTACTED VENDOR466418AKSCINE LLC55
10delaneyp11/21/23 6:02 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR463328ALL-WAYS SAFETY INC. 55
11delaneyp5/12/23 18:14weekdayro message categoryCOLLECTIONS CONTACTED VENDOR465325ALMO CORPORATION 55
12delaneyp12/12/23 18:44weekdayro message categoryCOLLECTIONS CONTACTED VENDOR465325ALMO CORPORATION 55
13mroche1/12/23 17:17weekdayro message categoryCOLLECTIONS CONTACTED VENDOR465325ALMO CORPORATION 555
14mroche1/12/23 17:17weekdayro message categoryCOLLECTIONS CONTACTED VENDOR465716ALMO CORPORATION 500
15mroche1/12/23 17:17weekdayro message categoryCOLLECTIONS CONTACTED VENDOR465716ALMO CORPORATION 500
16mroche1/12/23 17:17weekdayro message categoryCOLLECTIONS CONTACTED VENDOR465716ALMO CORPORATION 500
17mroche1/12/23 17:17weekdayro message categoryCOLLECTIONS CONTACTED VENDOR469006ALMO CORPORATION 500
18mroche12/20/23 6:35 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR469007ALMO CORPORATION 55
19delaneyp12/21/23 10:38 AMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR469007ALMO CORPORATION 55
20delaneyp10/30/23 6:07 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR455747ALPHATHETA MUSIC AMERICA S INC55
21delaneyp10/30/23 6:08 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR457258ALPHATHETA MUSIC AMERICA S INC55
22delaneyp9/11/23 12:24weekdayro message categoryCOLLECTIONS CONTACTED VENDOR462857AUTEL ROBOTICS USA LLC55
23delaneyp10/30/23 6:57 PMweekdayro message categoryCOLLECTIONS CONTACTED VENDOR460779BOGEN COMMUNICATIONS LLC 55
24delaneyp9/11/23 13:47weekdayro message categoryCOLLECTIONS CONTACTED VENDOR460779BOGEN COMMUNICATIONS LLC 55
Sheet1
Cell Formulas
RangeFormula
J2:J24J2=IF(COUNTIFS($A$2:A2,A2,$B$2:B2,B2,$E$2:E2,E2,$G$2:G2,G2)=1,5,0)
This formula works but there’s a little green triangle on the rope left corner of the cell and when I try to sort or filter the file by the zeros, workbook freezes. Granted it’s about 40k lines, is there anyway around that?
 
Upvote 0
the green triangle is a message , if a different formula or something in the cell, not always an error - just a message - click on ot and it should tell you somethign

not sure why it would freeze - BUT all the formulas that are volatile - will recalcalculate the entire spreadsheet

The following Excel functions are volatile:

  • NOW
  • TODAY
  • RANDBETWEEN
  • OFFSET
  • INDIRECT
  • INFO (depending on its arguments)
  • CELL (depending on its arguments)
  • SUMIF (depending on its arguments)

BUT depending wht you have in another function may make it volatile - calculate every time the spreadsheet is updated in some way - like filter()
 
Upvote 1
This formula works but there’s a little green triangle on the rope left corner of the cell and when I try to sort or filter the file by the zeros, workbook freezes. Granted it’s about 40k lines, is there anyway around that?

the green triangle is a message , if a different formula or something in the cell, not always an error - just a message - click on ot and it should tell you somethign

not sure why it would freeze - BUT all the formulas that are volatile - will recalcalculate the entire spreadsheet

The following Excel functions are volatile:

  • NOW
  • TODAY
  • RANDBETWEEN
  • OFFSET
  • INDIRECT
  • INFO (depending on its arguments)
  • CELL (depending on its arguments)
  • SUMIF (depending on its arguments)

BUT depending wht you have in another function may make it volatile - calculate every time the spreadsheet is updated in some way - like filter()
Hey do I have to make a new post cause I need some modifications to the formula….
 
Upvote 0
Hey do I have to make a new post cause I need some modifications to the formula….
i would as may get more people looking at the thread , as this one is solved .
 
Upvote 0
Solution

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