Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8818685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:10:06+00:00 2026-06-14T05:10:06+00:00

Okay, I have been trying to find a solution for this and I just

  • 0

Okay, I have been trying to find a solution for this and I just don’t seem to be able. I can’t even break down the problem properly. This is the idea.

I have two sheets with many rows (one with 800 and the other with 300,000). Each row contains a Name column and then several columns that contain information about this Name. Each sheet has different kinds of information.

I want to consolidate these two sheets into a master sheet based on this Name column they both have, so the consolidate function is perfect for this. Now the problem is that the names don’t match perfectly.

For example Sheet1 contains

“Company B.V.”, “Info #1”
“Company Total”, “Info #2”
“Company Ltd”, “Info #3”

and sheet 2 contains

“Company and Co.”, “Info #4”
“Company and Co”, “Info #5”

Sheet 1 contains all the names that are going to be used (around a 100 but in different forms as stated above) and sheet 2 contains all these 100 in multiple rows plus names that aren’t in the 100 list and therefore I don’t care about.

How would I make a VBA code project where the end result would be something like this, Master sheet:

“Company”, “Info #1”, “Info #2”, “Info #3”, “Info #4”, “Info #5”

for every single “Company” (the 100 list) in there??

I do hope there is a solution for this. I’m pretty new to VBA projects, but I have done some minimal coding before.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:10:08+00:00Added an answer on June 14, 2026 at 5:10 am

    I would place the macro in your PERSONAL section, this way the macro is available in all worksheets. Do this by recording a dummy macro and select to store it in Personal Macro workbook. Now you can manually add new macro’s and functions in this personal workbook.

    I just tried this one (don’t know the original source) and it works fine.

    The formula looks like this: =PERSONAL.XLSB!FuzzyFind(A1,B$1:B$20)

    The code is here:

    Function FuzzyFind(lookup_value As String, tbl_array As Range) As String
    Dim i As Integer, str As String, Value As String
    Dim a As Integer, b As Integer, cell As Variant
    For Each cell In tbl_array
      str = cell
      For i = 1 To Len(lookup_value)
        If InStr(cell, Mid(lookup_value, i, 1)) > 0 Then
          a = a + 1
          cell = Mid(cell, 1, InStr(cell, Mid(lookup_value, i, 1)) - 1) & Mid(cell, InStr(cell, Mid(lookup_value, i, 1)) + 1, 9999)
        End If
      Next i
      a = a - Len(cell)
      If a > b Then
        b = a
        Value = str
      End If
      a = 0
    Next cell
    FuzzyFind = Value
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay. I have been trying organise this nsmutable array so my program can use
okay i have been trying to understand this for hours i am learning VB
Okay I been trying to work this out but unable too. I have a
Okay I've been trying to figure this out for a while now. I have
Okay, So I have been all over the net trying to find ways to
Okay so basically, i have been trying this for and hour or 2 now.
Okay I have been trying to get this to work for some time now.
Okay, guys i have been trying to define a Stack , each node also
Okay. Now I give up. I have been playing with this for hours. I
Okay, I have just been through a massive amount of bull craparooonie with xcodes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.