Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
6/7/2016 4:10:52 PM EDT
In column A ,  when I type an  employee name in I want it to auto fill an employee ID in column B.

Multiple employees with different ID numbers.

Is this possible?

New question

I need to add a column that adds a time frame and converts it into minutes, The two times can be in separate columns. the minutes are in a separate column.

Example

9:00- 5:00 480

6/7/2016 4:12:22 PM EDT
[#1]
If you have the employee info in another tab (or spreadsheet) you could do a vlookup.
6/7/2016 4:13:40 PM EDT
[#2]
Do you want the employee IDs to be sequential? 101, 102, 103, etc? or are they already assigned IDs?



Because I think you'd need to have a table or database with the info already entered if you need it to be non-sequential or pre-determined.




-not an expert, BTW.
6/7/2016 4:13:47 PM EDT
[#3]
See above. vlookup
6/7/2016 4:15:17 PM EDT
[#4]
Quote History
Quoted:
If you have the employee info in another tab (or spreadsheet) you could do a vlookup.
View Quote


This is your answer.  Keep the employees' names and ID numbers on a separate tab in the same workbook - it's a lot more convenient than linking to a whole other spreadsheet.  
6/7/2016 4:15:38 PM EDT
[#5]
First create a table with employee name in column  a. And id in column b. Then use vlookup formula .
6/7/2016 4:18:18 PM EDT
[#6]
At worst put the table of names and numbers on a new worksheet.  Using a separate spreadsheet means keeping them always married or they will get out of synch almost immediately.

To start, put two columns with the info just to right and completely below the area where you are working in the worksheet until you get the basic logic worked out, then add the new worksheet tab with links.  This prevents changes at the top where you are working through the analysis from changing the names table by inserting rows or columns into the data.  Or if you aren't fancy, keep all the names and numbers on the same sheet.

6/7/2016 4:21:54 PM EDT
[#7]
Quoted:
Do you want the employee IDs to be sequential? 101, 102, 103, etc? or are they already assigned IDs?

Because I think you'd need to have a table or database with the info already entered if you need it to be non-sequential or pre-determined.


-not an expert, BTW.
View Quote


Already issued numbers


So make the 2 columns in a separate sheet at bottom with the information needed.
Then vlookup??


6/7/2016 4:22:43 PM EDT
[#8]
Quote History
Quoted:


This is your answer.  Keep the employees' names and ID numbers on a separate tab in the same workbook - it's a lot more convenient than linking to a whole other spreadsheet.  
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
If you have the employee info in another tab (or spreadsheet) you could do a vlookup.


This is your answer.  Keep the employees' names and ID numbers on a separate tab in the same workbook - it's a lot more convenient than linking to a whole other spreadsheet.  

That would be my Plan A as well.  At least finding a bad reference would tell me the employee list was out of date.  But this certainly depends on the full details and use case.
6/7/2016 4:24:27 PM EDT
[#9]
Quote History
Quoted:


Already issued numbers


So make the 2 columns in a separate sheet at bottom with the information needed.
Then vlookup??


View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
Do you want the employee IDs to be sequential? 101, 102, 103, etc? or are they already assigned IDs?

Because I think you'd need to have a table or database with the info already entered if you need it to be non-sequential or pre-determined.


-not an expert, BTW.


Already issued numbers


So make the 2 columns in a separate sheet at bottom with the information needed.
Then vlookup??



Yup.  The names will need to be alphabetical or vlookup will mess up, but the command is pretty simple when you do it a couple times.  Don't be afraid to hit the function button (Fx) to get the information in the right spots.
6/7/2016 4:24:49 PM EDT
[#10]
Quoted:
In column A ,  when I type an  employee name in I want it to auto fill an employee ID in column B.

Multiple employees with different ID numbers.

Is this possible?

View Quote



Data Validation and lists.   Create a separate list with all of your employees somewhere in your workbook.   With data validation you can then simply select the employee from a dropdown.  Then in the column next to it, say it's column B, use "IFERROR(IF(A2<>"",VLOOKUP(A2,Rangewithnamesandnumbers,2,FALSE),"Not Found")

Modify as needed.  Note if you use a table, it'll replace range references with table references, a la "tablename[column name]" etc.
6/7/2016 4:25:15 PM EDT
[#11]
Quote History
Quoted:
If you have the employee info in another tab (or spreadsheet) you could do a vlookup.
View Quote


Assuming you have some sort of unique ID that can link the two together you should just do a V-lookup.

If you don't have a Unique ID/Primary Key linking the two together then you're fucked and nothing Excel can do will help you.
6/7/2016 4:27:19 PM EDT
[#12]
Quote History
Quoted:



Data Validation and lists.   Create a separate list with all of your employees somewhere in your workbook.   With data validation you can then simply select the employee from a dropdown.  Then in the column next to it, say it's column B, use "IFERROR(IF(A2<>"",VLOOKUP(A2,Rangewithnamesandnumbers,2,FALSE),"Not Found")

Modify as needed.  Note if you use a table, it'll replace range references with table references, a la "tablename[column name]" etc.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
In column A ,  when I type an  employee name in I want it to auto fill an employee ID in column B.

Multiple employees with different ID numbers.

Is this possible?




Data Validation and lists.   Create a separate list with all of your employees somewhere in your workbook.   With data validation you can then simply select the employee from a dropdown.  Then in the column next to it, say it's column B, use "IFERROR(IF(A2<>"",VLOOKUP(A2,Rangewithnamesandnumbers,2,FALSE),"Not Found")

Modify as needed.  Note if you use a table, it'll replace range references with table references, a la "tablename[column name]" etc.


That only works assuming he has a seperate tab in which he already has the employees names and ID numbers
6/7/2016 4:28:32 PM EDT
[#13]
Quote History
Quoted:


That only works assuming he has a seperate tab in which he already has the employees names and ID numbers
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
Quoted:
In column A ,  when I type an  employee name in I want it to auto fill an employee ID in column B.

Multiple employees with different ID numbers.

Is this possible?




Data Validation and lists.  Create a separate list with all of your employees somewhere in your workbook.  With data validation you can then simply select the employee from a dropdown.  Then in the column next to it, say it's column B, use "IFERROR(IF(A2<>"",VLOOKUP(A2,Rangewithnamesandnumbers,2,FALSE),"Not Found")

Modify as needed.  Note if you use a table, it'll replace range references with table references, a la "tablename[column name]" etc.


That only works assuming he has a seperate tab in which he already has the employees names and ID numbers


Which is why I said the above in red.

ETA:   The list can be anywhere.  Doesn't need to be a different tab.
6/7/2016 4:31:39 PM EDT
[#14]
vlookup is your friend



=VLOOKUP
6/7/2016 4:34:12 PM EDT
[#15]
So I have the  list with employee names In column b cells 4-16
Have the corresponding id number in column c 4-16

I transferred the drop down list from sheet 2 to where I need it  in sheet 1
I cant seem to get the vlookup feature to carry over.

#VALUE! error



6/7/2016 4:35:24 PM EDT
[#16]
Quote History
Quoted:
So I have the  list with employee names In column b cells 4-16
Have the corresponding id number in column c 4-16

I transferred the drop down list from sheet 2 to where I need it  in sheet 1
I cant seem to get the vlookup feature to carry over.



View Quote



Sounds like the range references got screwed up.  Check the cell/table references in your formula.
6/7/2016 4:35:52 PM EDT
[#17]
Quote History
Quoted:
So I have the  list with employee names In column b cells 4-16
Have the corresponding id number in column c 4-16

I transferred the drop down list from sheet 2 to where I need it  in sheet 1
I cant seem to get the vlookup feature to carry over.



View Quote

Vlookup would be on sheet one in the cells where you want the ID to be autofilled.  It will reference the area on sheet two where the data is pulled from.

So it should look like
=VLOOKUP(A2,Sheet2!B4:C16,2,FALSE)
Where A2 is whatever the name is that you are looking to match.
6/7/2016 4:38:08 PM EDT
[#18]
I'm going to be contrary and suggest using an INDEX MATCH formula
6/7/2016 4:39:02 PM EDT
[#19]
Quote History
Quoted:
I'm going to be contrary and suggest using an INDEX MATCH formula
View Quote


Not necessary for OP's needs.   Very useful formula, but in this instance it's building a clock when just knowing the time is needed.
6/7/2016 4:40:45 PM EDT
[#20]
vlookup formula.
6/7/2016 4:41:10 PM EDT
[#21]
Quote History
Quoted:
vlookup formula.
View Quote



Get off this page.

6/7/2016 4:42:20 PM EDT
[#22]
Quote History
Quoted:


Not necessary for OP's needs.   Very useful formula, but in this instance it's building a clock when just knowing the time is needed.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
I'm going to be contrary and suggest using an INDEX MATCH formula


Not necessary for OP's needs.   Very useful formula, but in this instance it's building a clock when just knowing the time is needed.



yeah, but if he's going to learn something new, he might as well learn something that is quite a bit more flexible
6/7/2016 4:43:28 PM EDT
[#23]
Quote History
Quoted:



Get off this page.

View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
vlookup formula.



Get off this page.




6/7/2016 4:44:58 PM EDT
[#24]
Quote History
Quoted:



yeah, but if he's going to learn something new, he might as well learn something that is quite a bit more flexible
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
Quoted:
I'm going to be contrary and suggest using an INDEX MATCH formula


Not necessary for OP's needs.   Very useful formula, but in this instance it's building a clock when just knowing the time is needed.



yeah, but if he's going to learn something new, he might as well learn something that is quite a bit more flexible



In that case why not just go for full-on COM automation?  

If he's having trouble with VLOOKUP, he should get the hang of that first.
6/7/2016 4:45:03 PM EDT
[#25]
Quote History
Quoted:
If you have the employee info in another tab (or spreadsheet) you could do a vlookup.
View Quote


This right here
6/7/2016 4:46:00 PM EDT
[#26]
Quote History
Quoted:

Vlookup would be on sheet one in the cells where you want the ID to be autofilled.  It will reference the area on sheet two where the data is pulled from.

So it should look like
=VLOOKUP(A2,Sheet2!B4:C16,2,FALSE)
Where A2 is whatever the name is that you are looking to match.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
So I have the  list with employee names In column b cells 4-16
Have the corresponding id number in column c 4-16

I transferred the drop down list from sheet 2 to where I need it  in sheet 1
I cant seem to get the vlookup feature to carry over.




Vlookup would be on sheet one in the cells where you want the ID to be autofilled.  It will reference the area on sheet two where the data is pulled from.

So it should look like
=VLOOKUP(A2,Sheet2!B4:C16,2,FALSE)
Where A2 is whatever the name is that you are looking to match.


Ok it works. Thank you! I had the semi colon as a comma
is it normal for the #N/A to show up with no field selected in column A?
6/7/2016 4:46:55 PM EDT
[#27]
The simplest way to get this fixed is to let someone (a volunteer) from here set up the spreadsheet.

Use dummy names to protect private information.

6/7/2016 4:47:24 PM EDT
[#28]
Quote History
Quoted:


Ok it works. Thank you! I had the semi colon as a comma
is it normal for the #N/A to show up with no field selected in column A?
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
Quoted:
So I have the  list with employee names In column b cells 4-16
Have the corresponding id number in column c 4-16

I transferred the drop down list from sheet 2 to where I need it  in sheet 1
I cant seem to get the vlookup feature to carry over.




Vlookup would be on sheet one in the cells where you want the ID to be autofilled.  It will reference the area on sheet two where the data is pulled from.

So it should look like
=VLOOKUP(A2,Sheet2!B4:C16,2,FALSE)
Where A2 is whatever the name is that you are looking to match.


Ok it works. Thank you! I had the semi colon as a comma
is it normal for the #N/A to show up with no field selected in column A?


#N/A is returned if the value isn't found.  Use =IFERROR(VLOOKUP(A2,Sheet2!$B$4:$C$16,2,FALSE),"") if you just want to show blanks instead of errors.


ETA:   Wrap your cell references in $ (dollar signs).  That changes it to an absolute reference.  Otherwise, when you drag the formula down, it'll change the row references in the formula (B4 to B5 to B6, C16 to C17 to C18) etc.

6/7/2016 4:57:46 PM EDT
[#29]
Has anyone mentioned VLOOKUP?

6/7/2016 4:57:49 PM EDT
[#30]
Thank you for that! Im way lower then a cave man when it come to excel. I need to take a course on learning all what can be done in it.
6/7/2016 5:01:05 PM EDT
[#31]
Quote History
Quoted:
Thank you for that! Im way lower then a cave man when it come to excel. I need to take a course on learning all what can be done in it.
View Quote



PM me if you're serious about learning more.
6/7/2016 5:02:46 PM EDT
[#32]
Quote History
Quoted:
Has anyone mentioned VLOOKUP?

View Quote


I'm not sure that's the best way to go.  I think VLOOKUP would suit him better.
6/7/2016 5:03:15 PM EDT
[#33]
Tab 2 - Column A - EE Name    Column B - EE ID

Tab 1 - Column A - EE Name    Column B - =vlookup(A1,'Tab2'!A:B,2,False)

Drag the formula down for A2, A3, etc.
6/7/2016 5:03:19 PM EDT
[#34]
Quote History
Quoted:
Has anyone mentioned VLOOKUP?

View Quote


Nope, not yet. Novel idea!

6/7/2016 5:18:07 PM EDT
[#35]
If your data is in an ODBC compatible database, you can use PivotTable/MicrosoftQuery to pull it straight into Excel.  This way, if the DB is changed, you can just hit refresh instead of having to re-do your sheet every time.
6/7/2016 5:39:58 PM EDT
[#36]
Quote History
Quoted:
If your data is in an ODBC compatible database, you can use PivotTable/MicrosoftQuery to pull it straight into Excel.  This way, if the DB is changed, you can just hit refresh instead of having to re-do your sheet every time.
View Quote

Winner.  As in"most robust answer that uses Excel."

What you really want is an Access database.
6/7/2016 5:47:49 PM EDT
[#37]
Quote History
Quoted:
If your data is in an ODBC compatible database, you can use PivotTable/MicrosoftQuery to pull it straight into Excel.  This way, if the DB is changed, you can just hit refresh instead of having to re-do your sheet every time.
View Quote


I remember when I first learned about PivotTables.... it was as if the clouds parted and trumpets sounded.  
6/7/2016 5:58:13 PM EDT
[#38]
6/7/2016 6:00:34 PM EDT
[#39]
Quote History
Quoted:


I remember when I first learned about PivotTables.... it was as if the clouds parted and trumpets sounded.  
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
If your data is in an ODBC compatible database, you can use PivotTable/MicrosoftQuery to pull it straight into Excel.  This way, if the DB is changed, you can just hit refresh instead of having to re-do your sheet every time.


I remember when I first learned about PivotTables.... it was as if the clouds parted and trumpets sounded.  


No kidding. Doing summaries of spreadsheets or lists of data became *almost* magical. GIGO still applies, though.
6/7/2016 6:01:06 PM EDT
[#40]

Quote History
Quoted:
yeah, but if he's going to learn something new, he might as well learn something that is quite a bit more flexible
View Quote View All Quotes
View All Quotes
Quote History
Quoted:



Quoted:


Quoted:

I'm going to be contrary and suggest using an INDEX MATCH formula




Not necessary for OP's needs.   Very useful formula, but in this instance it's building a clock when just knowing the time is needed.






yeah, but if he's going to learn something new, he might as well learn something that is quite a bit more flexible




 
Yep. I would suggest match/index as its way more flexible, but if he's needing a very, very simple mapping, then I guess vlookup is sufficient.
6/7/2016 6:08:54 PM EDT
[#41]
This sounds like a job for Captain Access!!
6/7/2016 6:10:35 PM EDT
[#42]
Quote History
Quoted:

Winner.  As in"most robust answer that uses Excel."

What you really want is an Access database.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
If your data is in an ODBC compatible database, you can use PivotTable/MicrosoftQuery to pull it straight into Excel.  This way, if the DB is changed, you can just hit refresh instead of having to re-do your sheet every time.

Winner.  As in"most robust answer that uses Excel."

What you really want is an Access database.


If he wants to get slick on a budget, MySql or SqLite could be used too.  Access will likely already exist on his box if it's a corporate machine.
6/7/2016 6:15:53 PM EDT
[#43]
Quote History
Quoted:


If he wants to get slick on a budget, MySql or SqLite could be used too.  Access will likely already exist on his box if it's a corporate machine.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
Quoted:
If your data is in an ODBC compatible database, you can use PivotTable/MicrosoftQuery to pull it straight into Excel.  This way, if the DB is changed, you can just hit refresh instead of having to re-do your sheet every time.

Winner.  As in"most robust answer that uses Excel."

What you really want is an Access database.


If he wants to get slick on a budget, MySql or SqLite could be used too.  Access will likely already exist on his box if it's a corporate machine.

Introducing a new Access app to a corporate environment, however small and limited, should be a capital crime.
6/7/2016 6:23:17 PM EDT
[#44]
Can I sell you a salesforce.com product? With full product support. Only a million $ a quarter.  

(I mean, if you don't want to use vlookup.)
6/7/2016 6:29:19 PM EDT
[#45]
Quote History
Quoted:

Introducing a new Access app to a corporate environment, however small and limited, should be a capital crime.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
Quoted:
Quoted:
If your data is in an ODBC compatible database, you can use PivotTable/MicrosoftQuery to pull it straight into Excel.  This way, if the DB is changed, you can just hit refresh instead of having to re-do your sheet every time.

Winner.  As in"most robust answer that uses Excel."

What you really want is an Access database.


If he wants to get slick on a budget, MySql or SqLite could be used too.  Access will likely already exist on his box if it's a corporate machine.

Introducing a new Access app to a corporate environment, however small and limited, should be a capital crime.



I do not ever recommend Access.  A lot of my work prior to my current clients dealt with getting people OFF of Access.  Very often it was the same story - someone came on board who knew a couple of things about Access, maybe even a little VBA, wowed a lot of people because they could demonstrate an 'Update query' or 'For Each Loop' and won people over to the idea that Access is a great system.  Ultimately, they weren't aware of its limitations, slowness, and 'bulkiness' and it impeded the flow of business, not enhanced it.

Many corporate machines do not have it installed. Some may, but a lot of images don't include it because Access is a separate license cost.   I've been in a few environments where it was a special request item only.

YMMV, but I avoid Access like the plague.  MySQL is a good alternative, but if sticking to the MS route, SQL Server Express blows access out of the water.
6/30/2016 1:19:12 PM EDT
[#46]
Ok another question

I need to add a column that adds a time frame and converts it into minutes, The two times can be in separate columns. the minutes are in a separate column.

Example

9:00- 5:00  480
6/30/2016 1:32:50 PM EDT
[#47]

Quote History
Quoted:
If he wants to get slick on a budget, MySql or SqLite could be used too.  Access will likely already exist on his box if it's a corporate machine.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:



Quoted:


Quoted:

If your data is in an ODBC compatible database, you can use PivotTable/MicrosoftQuery to pull it straight into Excel.  This way, if the DB is changed, you can just hit refresh instead of having to re-do your sheet every time.



Winner.  As in"most robust answer that uses Excel."



What you really want is an Access database.




If he wants to get slick on a budget, MySql or SqLite could be used too.  Access will likely already exist on his box if it's a corporate machine.
Op is going to be training Indians shortly with all the mad skilz yo , that he be getting here



 
6/30/2016 1:38:40 PM EDT
[#48]

Quote History
Quoted:


Ok another question



I need to add a column that adds a time frame and converts it into minutes, The two times can be in separate columns. the minutes are in a separate column.



Example



9:00- 5:00  480
View Quote
use a 24hr clock so col a = 9, col b = 17 , col c = (b1-c1)*60