How to Pick the data from one sheet and paste in nother sheet?

call2shree

New Member
Joined
Nov 24, 2010
Messages
15
Hi Experts,

Could you please create as macro based on the below mentioned details.

Sheet 1 as summary:

Button1 as Country { India,France and USA}
Button 2 as City {Hyderabad,Chennai and New jersy}
Button 3 as Submit.

Sheet 2 as Basedata
Name </SPAN> Class</SPAN> Year</SPAN> City</SPAN>Country</SPAN>
xxx</SPAN>2</SPAN>1999</SPAN>Hyderabad</SPAN>India</SPAN>
aaa</SPAN>9</SPAN>2004</SPAN>Chennai</SPAN>India</SPAN>
bbb</SPAN>7</SPAN>2007</SPAN>Mumbai</SPAN>India</SPAN>
eee</SPAN>6</SPAN>2008</SPAN>Paries</SPAN>France</SPAN>
www</SPAN>5</SPAN>2001</SPAN>New jersy</SPAN>USA</SPAN>

<TBODY>
</TBODY><COLGROUP><COL span=5></COLGROUP>


Sheet 3 as Output

Name Class Year City Country

When I select in Sheet1 Few parameters, those parameters pick from Basedata and show it in Output.

Example: In Sheet 1, Button 1 as County select as India and Button 2 as City select as Hyderabad.
In Sheet 3 Output pick the sheet 2 Hyderabad data..
Hope I give a breif about my requirment.please reply if you have any questions.

Thanks in Advance
Srinath
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Do you mean data validation dropdowns rather than buttons? Why do you need a macro when formulas will do the job?
 
Upvote 0
Thanks for your reply..my requirments is need to select using validation my parameters. actually having more number of lines and Parameters.
 
Upvote 0
Do you mean that a combination of country and city can occur more than once in your list on Basedata? if so please post some representative sample data and the expected results. Note that you could use Excel's built-in AutoFilter to achieve the result you want to see.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top