Not sure if vlookup is best for this

Kiml56

New Member
Joined
Jun 10, 2017
Messages
16
Hello there i got this problem, that i keep getting stuck on i might be over thinking it, excel version 2016. so here i go . I got this little problem i am trying to get to work.

1. I am trying to get the data from sheet 1 : user ( L 1 ) to go to my sheet 2 Receiver but only have the name go there 1 time as you can see the user name can show several times ( like JR052209 / AZ0602726 ) but i only want them to show up 1 time automatic as showed below so if i was to change one user on sheet1 it would also change on sheet2 .

2. count the instances that a user is listed in sheet1 (L1) and list on sheet2 under lines and also add the numbers on sheet1 (H1 source target qt) per set user (L1) to sheet2 under peices. if any of this is possible.i can attach a copy of the sheet if need be. thanks so much all..
1595016792465.png
1595017407351.png
 
Glad we could help & thanks for the feedback.
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Two formula options depending on what version of Excel you have.
+Fluff New.xlsm
L
1User
2E06000008
3E06000019
4E06000019
5E06000025
6E06000025
7E06000047
8E06000050
9E07000052
10E07000052
11E07000068
12E07000068
13E07000205
14E07000205
15E07000206
16E07000216
17E08000017
18E08000017
19E09000006
20E09000012
21E09000015
22E09000026
23E09000031
Sheet1


+Fluff New.xlsm
AB
1
2UserUser
3E06000008E06000008
4E06000019E06000019
5E06000025E06000025
6E06000047E06000047
7E06000050E06000050
8E07000052E07000052
9E07000068E07000068
10E07000205E07000205
11E07000206E07000206
12E07000216E07000216
13E08000017E08000017
14E09000006E09000006
15E09000012E09000012
16E09000015E09000015
17E09000026E09000026
18E09000031E09000031
19 
20 
21
Sheet2
Cell Formulas
RangeFormula
A3:A18A3=UNIQUE(Sheet1!L2:L23)
B3:B20B3=IFERROR(INDEX(Sheet1!$L$2:$L$23,MATCH(0,COUNTIFS(B$2:B2,Sheet1!$L$2:$L$23),0)),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Dynamic array formulas.


Please update you account details to ahow what version of Excel you are using, as this affects what functions you have available.
Hello Again sorry to be asking again but i seam to be missing one thing i need to find out from sheet1 from L2 how may times one user is listed so it can be counted and entered on sheet2 under lines B2 if possible.. Many thanks again
 
Upvote 0
You can use countif for that.
 
Upvote 0
You can use countif for that.
oh... ok will do thanks
 
Upvote 0
A few questions
1) What are the sheet name?
2) Do the users in col L start in L2
3) What cell do you want to return the first user in?
Hello Again sorry but can`t get the Countif to do the trick i think you might have misunderstood me i needed it also to be able give me the count like how many times do like if you look on the users on sheet1 you will see some of them listed more than once like AZ060726 that person is listed a total of 90 time on that one sheet and i need total and just show 90 on sheet2 on row B2 (without showing AZ060726 90 times) i have been trying but keep getting weird result none of witch helps :cool:
 
Upvote 0
Where Sheet1!L:L refers to the column with user names in the main sheet and A2 refers to an individual name extracted from the list by Fluff's formula.

=COUNTIF(Sheet1!L:L,A2)

FYI the pivot table would do all of this for you with a lot less effort (example below took 2 minutes from a blank sheet), unless I have misunderstood something, I believe that this is what you are asking for (simplified data format rather than retyping your entire screen capture).
Book3
ABCDEF
1Source Target qtyUser
2641SJUserCountSum
3683CPCP84477
4353CPJR63673
5164OHOH42130
6548SJSJ53112
7358JRGrand Total2313392
8667SJ
9127CP
10330SJ
11135CP
12370OH
13650JR
14739CP
15926SJ
16539JR
17567JR
18977CP
19853OH
20743OH
21683CP
22731JR
23780CP
24828JR
Sheet2
 
Last edited:
Upvote 0
Upvote 0
Where Sheet1!L:L refers to the column with user names in the main sheet and A2 refers to an individual name extracted from the list by Fluff's formula.

=COUNTIF(Sheet1!L:L,A2)

FYI the pivot table would do all of this for you with a lot less effort (example below took 2 minutes from a blank sheet), unless I have misunderstood something, I believe that this is what you are asking for (simplified data format rather than retyping your entire screen capture).
Book3
ABCDEF
1Source Target qtyUser
2641SJUserCountSum
3683CPCP84477
4353CPJR63673
5164OHOH42130
6548SJSJ53112
7358JRGrand Total2313392
8667SJ
9127CP
10330SJ
11135CP
12370OH
13650JR
14739CP
15926SJ
16539JR
17567JR
18977CP
19853OH
20743OH
21683CP
22731JR
23780CP
24828JR
Sheet2
yep you got it that`s it , I will try this and see if i can make a great looking sheet thanks very much.
 
Upvote 0
How about
Cell Formulas
RangeFormula
A3:A20A3=IFERROR(INDEX(Sheet1!$L$2:$L$23,MATCH(0,COUNTIFS(A$2:A2,Sheet1!$L$2:$L$23),0)),"")
B3:B20B3=IF(A3="","",COUNTIFS(Sheet1!L:L,A3))
Press CTRL+SHIFT+ENTER to enter array formulas.
great this works also now i got a few ideas to work with you all have been a great help maybe now i can get started again... :)
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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