+ Reply to Thread
Results 1 to 25 of 25

Macro that will look for decription in other tab

  1. #1
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Macro that will look for decription in other tab

    Hi all,

    I have here a file. I want a macro that will look for the description from the inputted value in Column C, D, E in the RAW tab. If i click the run macro button it will all appear.
    The description will be on the next tab.

    I want it to be a macro since the lines is more than 100k.

    Please find the attached file. Appreciate your kindness on helping me.
    Attached Files Attached Files

  2. #2
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Macro that will look for decription in other tab

    I think there is no need of macro.. as there is only one row matching your result..
    Give a try to the attached file and tell is that what you were trying to achieve..
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Vikas_Gautam; 09-10-2014 at 01:22 PM.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  3. #3
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    Hi, file you have attached is not worrking. i want this as macro coz it will be applied also in other files.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Macro that will look for decription in other tab

    Please Login or Register  to view this content.
    Can you explain why the file is not working?

    I expect the solution in the added by Vikas_Gautam will do as you requested.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    Please find the attached sheet to see if this is what you are trying to achieve. Click the Green Button on Sheet1 to get the desired output in Col. I, J and K based on the criteria in Col. C, D and E.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Macro that will look for decription in other tab

    @oeldere
    Thanks for endorsing my solution oeldere ..
    I think there is no need of macro...

    @OP
    If you insist on using macro solution..
    I thinks Sktneer's solution will do the job..
    i want this as macro coz it will be applied also in other files.
    is not a valid reason as you can copy and paste my formula ... if your all files have same standard formats...
    Last edited by Vikas_Gautam; 09-11-2014 at 06:02 AM.

  7. #7
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    Book1_ geliedee.xlsmHI SKTNEER,

    once i entered other values in column C, D and E its not showing the description on the column I, J, K.

  8. #8
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    This file will be populated by more than 100k lines...

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    You should input the matching values in col. C, D and E. You entered 165 while it should be 162 as there is no match for clerk 42 with credit rep group 165. Moreover you were entering Industry in lower case so I have modified the code to take care of it.
    See the attached.
    Attached Files Attached Files

  10. #10
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    Hi,

    Its working as long as it is in the same row.
    What i want it will show the description as long as it the can be find on the next sheet.
    So what ever i enter in Column C D and E the description will show.

    Appreciate what you did.
    Thank you so much and i hope youc an help me one last time

  11. #11
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    Please find the attached sheet to see if this works as per your requirement now.
    Attached Files Attached Files

  12. #12
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    hello sktneer, i just saw the file and its working fine. I was on leave. Thank you so much! But how would i add a status column? It the 3 columns match it should appear in the status column to proceed.

    Please see this picture: Status is on column M.
    Capture.JPG

    The problem here is they have different meaning/ But if accounting clerk column, credit rep and industry has the same one word it should appear proceed.

  13. #13
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    What do you want in status column? Run the code with some values in cols. C, D and E and then show me (upload the workbook not image) what are you expecting in the status column and why? i.e. what is the logic behind the status column as you said if the three columns match, which are those columns?

  14. #14
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    Hello sktneer,

    What i want for the status column M is to show ALIGNED if the Column I, J and K have the same description.
    for example:
    I J K M
    Lubes Oil Blending - FP1 Lubes Oil Blending P Lubes Oil Blending P ALIGNED
    SD Supply - FP1 SD Supply DE_Lubes Consumer Di MISALIGNED

    For example column I, J and K has different descrption right? But its all for the Lubes. there fore they are still aligned with each other.
    In the second exmaple, Column K is different from I and J coz its for LUBES. There fore, they are misaligned.

    i have attached the sample workbook.
    Apolgies if i cant explain well.. Thank yu ur a great help
    Attached Files Attached Files

  15. #15
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    also if column C D and E is blank, it will not proceed. Thanks sktneer..

  16. #16
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    Please find the attached sheet to see if this works as per your requirement.
    Attached Files Attached Files

  17. #17
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    Perfect!!! Omg! Youre my saver~ thanks so

  18. #18
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    One last question Sktneer, regarding this file.

    if the column C, D and E are blanks it should show a msgbox that theres no data. else, it will run.
    Thanks!!

  19. #19
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    You're welcome and thanks for the feedback.
    Please find the attached sheet to see it this meets your new requirement.

    Moreover if that takes care of your question, please mark your thread as Solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Attached Files Attached Files

  20. #20
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    Hi again.

    I have modified the file, i mean i put designs and everything.
    But the code youi gave doesnt work on my file. can you please put the updated codes in this file? so i can mark the thread solve. Thanks so much..
    Attached Files Attached Files

  21. #21
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    What changes you have made to your workbook and in which sheet? The workbook what you have attached here is password protected and I can see only one sheet and in this sheet I can see that you have changed the row number of columns headers. Have you made any changes to the other sheet also.
    Please upload the unprotected workbook.

  22. #22
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    I have added rows. In the previous file, headers are on the celll A2 to M2. Now its on cell A4 to M4. Thats just the difference... i have attached the unprotected file. apologies..
    Attached Files Attached Files

  23. #23
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    Please find the attached sheet. I have also deleted the conditional formatting for column M to make the cell highlight red if it contains the word Misaligned.
    Now the code will highlight any cell in col. M if it contains the word Misaligned.
    Attached Files Attached Files

  24. #24
    Forum Contributor geliedee's Avatar
    Join Date
    10-14-2013
    Location
    Manila, philippines
    MS-Off Ver
    Excel 2007
    Posts
    399

    Re: Macro that will look for decription in other tab

    Wow!!! Thats what exaclty i need!! Thank you so much!!

  25. #25
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Macro that will look for decription in other tab

    You're welcome.

+ 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. [SOLVED] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  2. How do I pair 2 columns - See decription
    By Sharrow in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-06-2012, 09:35 AM
  3. How to pair to columns - see decription
    By Sharrow in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-02-2012, 09:30 AM
  4. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  5. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM

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