Automatic Feed

philb99

Active Member
Joined
Feb 3, 2014
Messages
410
Office Version
  1. 2013
Platform
  1. Windows
Hi - I have 28 Support Leaders each have a Group number allocated to them from 1-28. I am trying to get an automatic feed into a column next to where once you select a support leader their group number will automatically feed into the next column.

However there will be occasions when a Support Leader will not be required and N/A entered. In the next column we have the date a SL has been assigned therefore is there anyway that when N/A has been selected an automatic N/A is entered.

I'm sure its something simple.
 
Last edited:

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)
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your sheet. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given alink to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your sheet. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given alink to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).

there you go, can you now help me
 
Upvote 0
It is still not clear what you want to do. Are you saying that once you enter a name in column B, you want their group number will appear in column C? If that is the case, how do we know which group number is assigned to which name? IN which column will you enter the NA?
In the next column we have the date a SL has been assigned therefore is there anyway that when N/A has been selected an automatic N/A is entered.
Please clarify this in detail using a few examples and referring to specific cells.
 
Upvote 0
It is still not clear what you want to do. Are you saying that once you enter a name in column B, you want their group number will appear in column C? If that is the case, how do we know which group number is assigned to which name? IN which column will you enter the NA?

Please clarify this in detail using a few examples and referring to specific cells
The Support Contact names and their individual Group Number are recorded on a separate tab in the same spreadsheet. For example John Mumber is Group Number 1 / Partner Group Number is N/A.

Yes once a name is keyed into Column B - John Mumber, then I would like the Group number to automatically populate into Col C.

Where the Support Contact Name is Partner their Group Number would be N/A and therefore I would like N/A to be automatically populated into Col D
 
Upvote 0
Could you post a sample of what the data looks like in the other sheet?
 
Upvote 0
Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Change the sheet name of the sheet containing the Support Contact names and their individual Group Number (in red) to suit your needs. Close the code window to return to your sheet. Enter a name in column B and press the ENTER key.
Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.CountLarge > 1 Then Exit Sub
    If Target.Column <> 2 Then Exit Sub
    Application.ScreenUpdating = False
    Dim fnd As Range
    Select Case Target.Value
        Case "Partner"
            Target.Offset(, 1).Resize(, 2).Value = Array("Not Required", "N/A")
        Case Else
            Set fnd = Sheets("Sheet2").Range("A:A").Fid(Target.Value, LookIn:=xlValues, lookat:=xlWhole)
            If Not fnd Is Nothing Then
                Target.Offset(, 1) = fnd.Offset(, 1)
            End If
    End Select
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Copy and paste this macro into the worksheet code module. Do the following: right click the tab name for your sheet and click 'View Code'. Paste the macro into the empty code window that opens up. Change the sheet name of the sheet containing the Support Contact names and their individual Group Number (in red) to suit your needs. Close the code window to return to your sheet. Enter a name in column B and press the ENTER key.
Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.CountLarge > 1 Then Exit Sub
    If Target.Column <> 2 Then Exit Sub
    Application.ScreenUpdating = False
    Dim fnd As Range
    Select Case Target.Value
        Case "Partner"
            Target.Offset(, 1).Resize(, 2).Value = Array("Not Required", "N/A")
        Case Else
            Set fnd = Sheets("Sheet2").Range("A:A").Fid(Target.Value, LookIn:=xlValues, lookat:=xlWhole)
            If Not fnd Is Nothing Then
                Target.Offset(, 1) = fnd.Offset(, 1)
            End If
    End Select
    Application.ScreenUpdating = True
End Sub
Many thanks for providing but nothing happens when I run the code. When I View Macros in the View ribbon nothing shows but when I right Click tab and View Code, I can see the Macro but it doesn't run.

Does this code also populate the Group Number when a Support Contact has been allocated?
 
Upvote 0
I tested the macro using the file you posted and it worked as you requested. Are macros enabled in your workbook? If they are, then please upload a copy of the file that isn’t working for you, de-sensitized if necessary.
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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