+ Reply to Thread
Results 1 to 4 of 4

Need to search multiple cell value and fill it all into another cell

  1. #1
    Registered User
    Join Date
    02-18-2023
    Location
    Kuala Tanjung, Indonesia
    MS-Off Ver
    2019
    Posts
    17

    Need to search multiple cell value and fill it all into another cell

    Hi everyone,
    I try to find a possible causes value in from another sheet and put all the value that match into another sheet.
    Attachment 822989
    I want to make the "possible cause" value come from other sheet and fill the column as it need.
    For example, if i choose equipment "centrifugal", and problem "Pump overheat", in "possible cause" column, the value is as shown below.
    Exm.png
    And this works with the other sheet too.
    What is the formula?
    Guide for Suffering.xlsx

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Need to search multiple cell value and fill it all into another cell

    I'd offer a VBA solution, to trigger change in cell B3, C3 sheet Guide
    Pick value from dropdown, and see a list in column D generated

    How to use:
    Right click tab's name. View Code, paste below code into:
    PHP Code: 
    Option Explicit
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim i&, j&, k&, prob As String
    Dim wsname 
    As Stringrng As StringceRres(1 To 10001 To 1)
    If 
    Intersect(TargetRange("B3:C3")) Is Nothing Then Exit Sub
    Select 
    Case [B3].Value
        
    Case "Nemo"
            
    wsname "Nemo Guide"rng "B3:M34"
        
    Case "Teikoku"
            
    wsname "Teikoku Guide"rng "B4:S30"
        
    Case "Centrifugal"
            
    wsname "Centrifugal Pump Guide"rng "B3:P27"
    End Select
    prob 
    Range("C3").Value
    With Sheets
    (wsname)
        
    ceR = .Range(rng).Value
        
    If WorksheetFunction.CountIf(.Range(rng), prob) = 0 Then
            Range
    ("C3").Select
            
    Exit Sub
        End 
    If
        For 
    1 To UBound(ceR2)
            If 
    ceR(1j) = prob Then
                
    For 3 To UBound(ceR)
                    If 
    ceR(ij) <> "" Then
                        k 
    1res(k1) = ceR(iUBound(ceR2))
                    
    End If
                
    Next
            End 
    If
        
    Next
    End With
    Range
    ("D3:D10000").ClearContents
    Range
    ("D3").Resize(k1).Value res
    End Sub 
    Save as file as .xlsm
    Attached Files Attached Files
    Quang PT

  3. #3
    Registered User
    Join Date
    02-18-2023
    Location
    Kuala Tanjung, Indonesia
    MS-Off Ver
    2019
    Posts
    17

    Re: Need to search multiple cell value and fill it all into another cell

    Thanks for the solution. But can you create with excel formula?
    I cant run vba and macro in my PC.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,567

    Re: Need to search multiple cell value and fill it all into another cell

    Here is a formula based proposal:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    After pasting the formula into cell D3 drag the fill handle down to cell D19.
    If you need to see a copy of the file with the formula applied, then please attach a file without protected sheets.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fill Range of Cell Rows Based on Search Criteria
    By sansai in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2020, 11:12 PM
  2. Replies: 6
    Last Post: 01-20-2017, 04:03 PM
  3. [SOLVED] Code to Search a table for a specific Cell and fill it
    By JRidge in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-04-2014, 01:45 PM
  4. VBA search engine with auto fill cell and for searching in 3 column
    By avogadrow in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2014, 05:36 PM
  5. Search a cell for multiple words and return multiple results in one cell
    By samanthat86 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-23-2013, 12:01 PM
  6. Changing cell fill colour based on date in cell - Multiple rows
    By ExcelNewb2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2010, 07:30 AM
  7. [SOLVED] Can search by cell format like fill color?
    By T-Diego in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2006, 07:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1