Solved

Combine 2 Modules for search function

Posted on 2011-03-09
11
182 Views
Last Modified: 2012-05-11
Hi Experts,

I would like to request Experts help to combine Module 1 and 2 code. This is to allow data search result displayed at the SearchData (A5 and E11) sheet simultaneously based on search value at cell F2. I have attached the workbook together with the anticipated sample result at SearchData sheet for Experts perusal. Hope Experts will help me to combine these 2 modules.



SearchData.xls
0
Comment
Question by:Cartillo
[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
  • 6
  • 5
11 Comments
 
LVL 20

Expert Comment

by:Ardhendu Sarangi
ID: 35083035
Hi Cartillo,
Please see attached spreadsheet. I have combined the two SearchData macros together. can you please test this and see if this works?

thanks,
Ardhendu
SearchData.xls
0
 

Author Comment

by:Cartillo
ID: 35089373
Hi,

Thanks for the file. I have tested, its not showing the right result. Column A5 to D needs to show data from Total sheet and cell E11:F displayed result from sheet Validation. Hope you will help me to fix this.
0
 
LVL 20

Expert Comment

by:Ardhendu Sarangi
ID: 35094596
Sorry about that. Let me try to fix this for you...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Cartillo
ID: 35129763
Hi Pari,

Hope you'll re-look this Q.
0
 
LVL 20

Expert Comment

by:Ardhendu Sarangi
ID: 35129786
hi,

i have this question in the list. i will post a response soon...
0
 
LVL 20

Expert Comment

by:Ardhendu Sarangi
ID: 35141081
Hi,
Please see the following file. Let me know if this works?

SearchData.xls
0
 

Author Comment

by:Cartillo
ID: 35141365
Hi Pari123,

Thanks for the file. Have tested, the search function only return for Validation sheet (E11:F11), but not  for the Total sheet (A5:D).
0
 
LVL 20

Expert Comment

by:Ardhendu Sarangi
ID: 35141549
hi Cartillo,

i apologize for the trouble. can you please explain what the macro is doing? I tried running the macro and for the 2nd code i got a message - "item not found".


thanks,
Ardhendu
0
 

Author Comment

by:Cartillo
ID: 35142097
Hi Ardhendu,

The macro will look for the matched first 5 alphabets  at Total and Validation sheet if we entered search value at Cell F2 . e.g. if we type "AYDCC", all data at Total sheet will be displayed at (E11:F11) and at the same time matched data at (A5:D). If we type "Number", the result will show the data which is matched with the typed number at cell F2. Sorry for the confusion.
0
 
LVL 20

Accepted Solution

by:
Ardhendu Sarangi earned 500 total points
ID: 35157423
Hi Cartillo,
I think I have got this to work right now.

1. I have changed the code to accept two search strings - One for Total and one for Validation.
2. I also fixed the error where the validation was not returning values for the Totals sheet too.

This worked for me, can you please test this once?

Thank you for your patience,

Regards,
Ardhendu


SearchData.xls
0
 

Author Closing Comment

by:Cartillo
ID: 35183302
Hi Ardhendu,

Thanks a lot for the solution.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
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.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

735 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