Transfer the data from different excel sheet to one

allrounder

New Member
Joined
Dec 23, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I am preparing a price sheet where I want to create an order selection sheet.
I have multiple sheets which have some items and I want to perform selection in each sheet and transfer selected items to my order selection sheet.
 

Attachments

  • merge.png
    merge.png
    37.3 KB · Views: 8

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi Allrounder,

You don't say how many price sheets there are or which columns are used but here's an example using 3 price sheets and a sample order sheet. You'll need to specify the sheet names in Order I2 to I99 as Excel functions can't retrieve them (NOTE: you could hide the Order columns I, J, K in a work sheet if preferred).

Allrounder.xlsx
ABC
5Cable Set 115 - 81851
6Cable Set 218 - 82222
7Cable Set 321 - 82593
8Cable Set 424 - 82964
9Cable Set 527 - 8333
10Cable Set 630 - 8370
Price 1


Allrounder.xlsx
ABC
5Cable Set 115 - 8182
6Cable Set 218 - 8219
7Cable Set 4421 - 8256
8Cable Set 4524 - 82934
9Cable Set 4627 - 83305
10Cable Set 4730 - 83676
Price 2


Allrounder.xlsx
ABC
5Cable Set 4215 - 86845
6Cable Set 4318 - 88214
7Cable Set 4421 - 895833
8Cable Set 4524 - 8109524
9Cable Set 4627 - 812321
10Cable Set 4730 - 813690
Price 3


Cell Formulas
RangeFormula
J2:J15J2=IF(I2="","",COUNTIF(INDIRECT("'"&I2&"'!$C$5:$C$99"),">0"))
K2:K15K2=IF(I2="","",SUM($J$1:$J1))
A5:C15A5=IF(ROW()-ROW($A$4)>SUM($J$2:$J$99),"",INDEX(INDIRECT("'"&INDEX($I$2:$I$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1))&"'!$A$5:$c$99"),AGGREGATE(15,6,INDIRECT("'"&INDEX($I$2:$I$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1))&"'!$C$5:$C$99"),(ROW()-ROW($A$4))-(INDEX($K$2:$K$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1)))),COLUMN()))
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Transfer the data from different excel sheet to one
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Hi Allrounder,

You don't say how many price sheets there are or which columns are used but here's an example using 3 price sheets and a sample order sheet. You'll need to specify the sheet names in Order I2 to I99 as Excel functions can't retrieve them (NOTE: you could hide the Order columns I, J, K in a work sheet if preferred).

Allrounder.xlsx
ABC
5Cable Set 115 - 81851
6Cable Set 218 - 82222
7Cable Set 321 - 82593
8Cable Set 424 - 82964
9Cable Set 527 - 8333
10Cable Set 630 - 8370
Price 1


Allrounder.xlsx
ABC
5Cable Set 115 - 8182
6Cable Set 218 - 8219
7Cable Set 4421 - 8256
8Cable Set 4524 - 82934
9Cable Set 4627 - 83305
10Cable Set 4730 - 83676
Price 2


Allrounder.xlsx
ABC
5Cable Set 4215 - 86845
6Cable Set 4318 - 88214
7Cable Set 4421 - 895833
8Cable Set 4524 - 8109524
9Cable Set 4627 - 812321
10Cable Set 4730 - 813690
Price 3


Cell Formulas
RangeFormula
J2:J15J2=IF(I2="","",COUNTIF(INDIRECT("'"&I2&"'!$C$5:$C$99"),">0"))
K2:K15K2=IF(I2="","",SUM($J$1:$J1))
A5:C15A5=IF(ROW()-ROW($A$4)>SUM($J$2:$J$99),"",INDEX(INDIRECT("'"&INDEX($I$2:$I$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1))&"'!$A$5:$c$99"),AGGREGATE(15,6,INDIRECT("'"&INDEX($I$2:$I$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1))&"'!$C$5:$C$99"),(ROW()-ROW($A$4))-(INDEX($K$2:$K$99,MATCH(ROW()-ROW($A$4)-1,$K$2:$K$99,1)))),COLUMN()))
Hi Toadstool,

Thanks for your kind reply.​

By going through your solution, I figured to make my solution simpler now.
Setp1: User press default button to make sure that the next person who will be using it will not make wrong entries. For this, I need a button in my main "select" sheet. Which will make all items (column B, F, M) =0 and delete all entries from the order selection sheet.
Step 2: Now instead of taking data from different sheets, I will take data only from my main sheet " select" and select the particular items column B, F, M and create the order selection sheet.
Step 3: The order Selection sheet will contain the description item and price.

Please find the attached reference sheet link- .reference sheet.
 
Upvote 0
Hi Allrounder,
I don't do VBA so maybe wait for one of the VBA'ers to pick this up.
 
Upvote 0

Forum statistics

Threads
1,215,177
Messages
6,123,475
Members
449,100
Latest member
sktz

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