Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Multiple lookup values

Posted on 2013-01-28
4
Medium Priority
?
175 Views
Last Modified: 2013-01-29
Hi,

‘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,
Prashanth
Task-ID.xls
0
Comment
Question by:pg1533
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 31

Expert Comment

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

Accepted Solution

by:
gowflow earned 2000 total points
ID: 38828892
Check is that what you want. Make sure macroes are enabled and activate the button in sheet2 and chk results.
gowflow
Task-ID.xls
0
 

Author Comment

by:pg1533
ID: 38830096
Fantastic....!!!!

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

Have a great day!!!
0
 
LVL 31

Expert Comment

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

Featured Post

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

604 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