+ Reply to Thread
Results 1 to 7 of 7

Require VBA to display corresponding data in output sheet.

  1. #1
    Registered User
    Join Date
    10-12-2019
    Location
    india
    MS-Off Ver
    16
    Posts
    62

    Require VBA to display corresponding data in output sheet.

    Hi,

    I require some VBA solution to display result in output sheet.I have a list of country name with flag image url & continent name.My requirement is when I select custom country list in my excel output sheet it will automatically extract flag image url & continent name for that country from sheet1 & display in output sheet.I am sharing my excel file here.
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Require VBA to display corresponding data in output sheet.

    Data Range
    A
    B
    C
    1
    Bangladesh
    =VLOOKUP(A1,sheet1!$A$2:$B$217,2,FALSE)
    =VLOOKUP(A1,sheet1!$A$2:$C$217,3,FALSE)
    2
    Brazil
    =VLOOKUP(A2,sheet1!$A$2:$B$217,2,FALSE)
    =VLOOKUP(A2,sheet1!$A$2:$C$217,3,FALSE)
    3
    China
    =VLOOKUP(A3,sheet1!$A$2:$B$217,2,FALSE)
    =VLOOKUP(A3,sheet1!$A$2:$C$217,3,FALSE)
    4
    Croatia
    =VLOOKUP(A4,sheet1!$A$2:$B$217,2,FALSE)
    =VLOOKUP(A4,sheet1!$A$2:$C$217,3,FALSE)
    5
    Greece
    =VLOOKUP(A5,sheet1!$A$2:$B$217,2,FALSE)
    =VLOOKUP(A5,sheet1!$A$2:$C$217,3,FALSE)
    6
    India
    =VLOOKUP(A6,sheet1!$A$2:$B$217,2,FALSE)
    =VLOOKUP(A6,sheet1!$A$2:$C$217,3,FALSE)
    7
    Japan
    =VLOOKUP(A7,sheet1!$A$2:$B$217,2,FALSE)
    =VLOOKUP(A7,sheet1!$A$2:$C$217,3,FALSE)
    8
    Mexico
    =VLOOKUP(A8,sheet1!$A$2:$B$217,2,FALSE)
    =VLOOKUP(A8,sheet1!$A$2:$C$217,3,FALSE)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-12-2019
    Location
    india
    MS-Off Ver
    16
    Posts
    62

    Re: Require VBA to display corresponding data in output sheet.

    works fine.Thanks Alan

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Require VBA to display corresponding data in output sheet.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    05-09-2017
    Location
    Edmonton, Alberta
    MS-Off Ver
    2016
    Posts
    61

    Re: Require VBA to display corresponding data in output sheet.

    Is there a way to add on to this formula? If the value in the A column is empty, can it return a value of " " (nothing) - without showing a "0" or #N/A value?

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: Require VBA to display corresponding data in output sheet.

    @EWolfe
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

  7. #7
    Registered User
    Join Date
    05-09-2017
    Location
    Edmonton, Alberta
    MS-Off Ver
    2016
    Posts
    61

    Re: Require VBA to display corresponding data in output sheet.

    Sorry about that I will post a new thread.

+ 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. Compare sheet1 and sheet 2 and display the output
    By maddyrafi1987 in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 04-23-2019, 05:36 AM
  2. [SOLVED] Help require to get perfect output if there is a 'H' remark
    By mso3 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-23-2015, 12:57 AM
  3. Replies: 1
    Last Post: 03-11-2015, 04:07 PM
  4. [SOLVED] Help require to get image in output
    By mso3 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-23-2014, 06:46 AM
  5. Replies: 17
    Last Post: 10-14-2014, 08:21 AM
  6. [SOLVED] Require a formula to look at the last entered data in a row and display it
    By john dalton in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-21-2014, 10:45 AM
  7. Require help display trend in data
    By Andrew_MD7 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 02-19-2014, 11:17 AM

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