+ Reply to Thread
Results 1 to 5 of 5

Loop through multiple Columns on one sheet to compare with one column on another

  1. #1
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 365 enterprise
    Posts
    191

    Loop through multiple Columns on one sheet to compare with one column on another

    hi ,

    no sure if possible. i have attach a test file as so much easier to explain. but here goes i have sheet call Hit list it has list assets that need coming for service etc.. this sheet list length can change daily. i also have another sheet call Location , import the data from a tracker to find where the asset is which has around 12 different location (columns) and header for each location on the column this obviously changes daily too. all the asset are placed under the heading (column) where they are. using column B on "hit lis"t sheet loop through all the columns with headers on "Location" sheet if match found then place column header from "Location" sheet in which it was found on" hit list" sheet Column F where it match is For eaxmple... Currently At Tr Resources best to look at the test file so much easyier to explain lol currently i have to use CTRL F and type each asset in manally find it location so anything would be much apprecaited as it painfully numbing.

    many thank in advance
    Shane
    TEST lOCATION fILE .xlsm
    Last edited by sspreyer; 10-04-2024 at 05:08 PM.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,694

    Re: Loop through multiple Columns on one sheet to compare with one column on another

    Before anything, 2 sheets have a trailing space in their name. Delete these as sure as heck, someone will give you a nice macro and you'll come back saying that it does not work.
    The inherent weakness of the liberal society: a too rosy view of humanity.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,694

    Re: Loop through multiple Columns on one sheet to compare with one column on another

    In your attachment in result sheet, did you miss some on purpose?
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 365 enterprise
    Posts
    191

    Re: Loop through multiple Columns on one sheet to compare with one column on another

    Quote Originally Posted by jolivanes View Post
    In your attachment in result sheet, did you miss some on purpose?
    Please Login or Register  to view this content.
    Hi Jolivanes ,
    sorry for the trailing spaces in their names my Bad as i quickly mock the example.sheet to makesure senstive data was out. regarding miss some wasnt on purpose just messing it up do it manually

    thank for Marco much appreacited will definitely help me as you can see i muck up the example lol.

    again thank you so much

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,694

    Re: Loop through multiple Columns on one sheet to compare with one column on another

    Thanks for letting us know that all is well again in your Excel World.

    You mentioned that the amount of locations can change.
    Provided that the locations are going to be in Row5, change this line
    Please Login or Register  to view this content.
    to this
    Please Login or Register  to view this content.
    Some reading material in the following sites.
    https://edu.gcfglobal.org/en/excel-t...rging-cells/1/
    https://theexcelclub.com/stop-do-not...hy-with-fixes/
    https://www.perfectxl.com/excel-tool...t-merge-cells/
    https://www.atlaspm.com/toms-tutoria...merging-cells/

+ 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. Replies: 6
    Last Post: 02-24-2024, 02:29 PM
  2. [SOLVED] Formula for copying values in one coloumn to every one cell below in another coloumn
    By samyraj in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-22-2023, 02:54 AM
  3. [SOLVED] Macro Help: Sum values in coloumn B falling between Text1 and Text2 in coloumn A
    By excel_novice2019 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2019, 09:53 PM
  4. Vlookup returning first row coloumn data and not comparing rest of coloumn
    By Brapp2Smokin in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-26-2018, 08:24 PM
  5. [SOLVED] Count each unique value in coloumn 'a' and sum values in coloumn 'b'
    By vipin717 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 05-06-2014, 05:25 AM
  6. Compare digit with 2 coloumn
    By iamrony in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2008, 11:45 AM
  7. Urgent Help Needed with coloumn compare
    By Brento in forum Excel General
    Replies: 1
    Last Post: 07-28-2005, 08:05 PM

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