Multiple lookup values

Posted on 2013-01-28
Last Modified: 2013-01-29

‘Sheet 1’ has the list of both ‘COMPANY_LEVEL_ID ‘, ‘Analyst Area’ and ‘Analyst Sub Area’ with the corresponding ‘TSK ID’. ‘Sheet 2’ has the two separate columns for ‘Analyst Area’ and ‘Analyst Sub Area’.

I am trying to fetch the corresponding ‘TSK_ID’ data from ‘Sheet 1’ worksheet to ‘Sheet 2’ worksheet. I know that we can use vlookup for this. However, there are few blank cells in ‘Column B’ (Analyst Sub Area) in ‘Sheet 2’ worksheet. If the ‘Analyst Sub Area’ is blank then we need to take the ‘TSK ID’ associated to ‘Analyst Area’ and update. For this, using vlookup is not feasible and hence we need a macro to do this.

On click of a button which is there in ‘Sheet 1’ the associated ‘TSK ID’ should be pulled to ‘Sheet 2’. I have explained this through an example in the attached spreadsheet. Kindly review and please help me on this.

Thank You,
Question by:pg1533
  • 3
LVL 29

Expert Comment

ID: 38828714
We should in the contrary have the button in sheet2 not in sheet1 as it is sheet2 you want to update correct ?
LVL 29

Accepted Solution

gowflow earned 500 total points
ID: 38828892
Check is that what you want. Make sure macroes are enabled and activate the button in sheet2 and chk results.

Author Comment

ID: 38830096

Thank you for all your support on this. It really helped me.

Have a great day!!!
LVL 29

Expert Comment

ID: 38830269
Your welcome anytime. Tks for the nice appreciation.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now