Auto populating empty cells with specific text selection from drop down list

t1o9n9y1

New Member
Joined
Dec 9, 2018
Messages
19
I am trying to auto populate a group of empty cells with specific selections from a drop down list. The total list contains five entries, two of which I want to populate the empty cells when they are selected. I have tried the =IF formula, but it only seems to work within the same sheet. Whenever I try to do it from another sheet I get the #VALUE ! error. Any suggestions would be much appreciated.
 
Cross posted https://www.excelforum.com/excel-fo...into-table-on-separate-sheet.html#post5024091

While we do not prohibit Cross-Posting on this site, we do ask that you please mention you are doing so and provide links in each of the threads pointing to the other thread (see rule 13 here along with the explanation: Forum Rules).
This way, other members can see what has already been done in regards to a question, and do not waste time working on a question that may already be answered.
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("G5:L40")) Is Nothing Then Exit Sub
    Dim rng As Range, x As Long, y As Long
    Select Case Target.Value
        Case "ECOS failure - code: 2064", "ECOS failure - code: 2257"
            For x = 1 To 3
                For Each rng In Sheets("ECOS Statistics").Range(Sheets("ECOS Statistics").Cells(5, x), Sheets("ECOS Statistics").Cells(40, x))
                    If rng = "" Then
                        rng = Target
                        y = y + 1
                        Exit For
                    End If
                Next rng
                If y = 1 Then Exit For
            Next x
    End Select
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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