Solved

Multiple lookup values

Posted on 2013-01-28
4
159 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
  • 3
4 Comments
 
LVL 29

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 29

Accepted Solution

by:
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.
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 29

Expert Comment

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

708 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

13 Experts available now in Live!

Get 1:1 Help Now