• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Vlookup on the last columns for a range

Hi Team,

I have a data where in the range differs from one period to another.
Need your help in vlookup for the last two columns of the data using vba .

The last two new columns should be name as country and region.

Appreciate your help here

upload_2018-12-9_1-40-35.png
 

Attachments

  • Vlookup.xls
    63.5 KB · Views: 4
I think that you need to explain in more detail exactly what you want to happen here. Show us what the results should look like along with an explanation.
 
Thanks AlanSidman,

Need your help in v lookup for the last two columns of the data using vba .
The last two new columns should be name as country and region.


upload_2018-12-9_12-29-0.png
 

Attachments

  • Vlookup.xls
    68.5 KB · Views: 1
Thanks Vletm...one minor change .The below columns headers will be not be existing in base sheet while copying the extract from other file.

can we insert a header as " country" and "region" along with while running the code.

Thank you.

upload_2018-12-9_19-15-23.png
 
Dinesh_Excel
... minor?
Texts have to written as You've asked! ( Named headers and sheets names. )
Your " country" text isn't there written as You asked!
That's why, I used 'Region'-text to find column
to where the code will overwrite those 'vlookup's.
( I suppose that even 'Country ' and 'Region'-columns are side by side. )
As well as '/IS/C_COD'-text can be 'anywhere' in that sheet.
I haven't test all (im)possible variations.
 
Back
Top