putting a list of values into a horiz. set of formulas

mmenashe

New Member
Joined
Feb 15, 2011
Messages
23
I have two worksheets, a data page and another page which just reflects the
information set on the data page into various forumlas, etc

The data page is set up something like this
Code:
 <table border="0" cellpadding="0" cellspacing="0" width="216"><col style="width: 46pt;" width="61">  <col style="width: 31pt;" width="41">  <col style="width: 38pt;" width="50">  <col style="width: 48pt;" width="64">  <tbody><tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; width: 46pt;" height="13" width="61"> </td>   <td class="xl24" style="border-left: medium none; width: 31pt;" width="41"> </td>   <td class="xl24" style="border-left: medium none; width: 38pt;" width="50"> </td>   <td class="xl24" style="border-left: medium none; width: 48pt;" width="64"> </td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13">Color1:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Blue</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Color2:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Green</td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13">Car1:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Ford</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Car2:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Chevy</td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13">Color 3:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Red</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Color4:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Yellow</td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13">Car3:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Lincoln</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Car4:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Cadillac</td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13">Color 5:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Red</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Color6:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Blue</td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13">Car5:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">MBZ</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Car6:</td>   <td class="xl24" style="border-top: medium none; border-left: medium none;">Cadillac</td>  </tr>  <tr style="height: 9.75pt;" height="13">   <td class="xl24" style="height: 9.75pt; border-top: medium none;" height="13"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>   <td class="xl24" style="border-top: medium none; border-left: medium none;"> </td>  </tr> </tbody></table>

and the results page is something like

Code:
  <table border="0" cellpadding="0" cellspacing="0" width="64"><col style="width: 48pt;" width="64">  <tbody><tr style="height: 12.75pt;" height="17">   <td class="xl24" style="height: 12.75pt; width: 48pt;" height="17" width="64">Combo</td>  </tr>  <tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt;" height="17">Blue Ford</td>  </tr>  <tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt;" height="17">Green Chevy</td>  </tr>  <tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt;" height="17">Red Lincoln</td>  </tr>  <tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt;" height="17">Yellow Cadillac</td>  </tr>  <tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt;" height="17">Red MBZ</td>  </tr>  <tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt;" height="17">BlueCadillac</td>  </tr> </tbody></table>

or, the formulas for the first couple are

Code:
=CONCATENATE(Sheet1!B2," ",Sheet1!B3)
=CONCATENATE(Sheet1!D2," ",Sheet1!D3)
=CONCATENATE(Sheet1!B5," ",Sheet1!B7)
..........

and so forth

the problem is that in my case, I have 4 of 5 different cell locations in each formula, and I hope there is a faster way to get it done than manually doing 250 rows

to maybe help things out, I have another worksheet that has the concatenate formulas for those cells

Code:
 <table border="0" cellpadding="0" cellspacing="0" width="128"><col style="width: 48pt;" span="2" width="64">  <tbody><tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt; width: 48pt;" height="17" width="64">B2</td>   <td style="width: 48pt;" width="64">B3</td>  </tr>  <tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt;" height="17">D2</td>   <td>D3</td>  </tr>  <tr style="height: 12.75pt;" height="17">   <td style="height: 12.75pt;" height="17">B5</td>   <td>B7</td>  </tr> </tbody></table>........

what can I do to create something so that I have a set of formulas I can copy paste down the line to work, instead of manually changing each entry

thanks

Matt
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
OK, ive updated, thanks for your advice

preface, the below code is a simplified example, the project im working on is a bit more complicated but same formula problem here

------------------

have two worksheets, a data page and another page which just reflects the
information set on the data page into various formulas, etc

The data page is set up something like this

Excel Workbook
ABCD
2Color1:BlueColor2:Green
3Car1:FordCar2:Chevy
4
5Color 3:RedColor4:Yellow
6
7Car3:LincolnCar4:Cadillac
8
9
10Color 5:RedColor6:Blue
11Car5:MBZCar6:Cadillac
Sheet1
Excel Workbook
ABC
1Combo
2Blue Ford
3Green Chevy
4Red Lincoln
5Yellow Cadillac
6Red MBZ
7BlueCadillac
8
Excel 2003 and the results page is something like Sheet2
Excel 2003
Excel Workbook
CellFormula
B2=CONCATENATE(Sheet1!B2," ",Sheet1!B3)
B3=CONCATENATE(Sheet1!D2," ",Sheet1!D3)
B4=CONCATENATE(Sheet1!B5," ",Sheet1!B7)
B5=CONCATENATE(Sheet1!D5," ",Sheet1!D7)
B6=CONCATENATE(Sheet1!B10," ",Sheet1!B11)
B7=CONCATENATE(Sheet1!D10, Sheet1!D11)
Worksheet Formulas


the problem is that in my case, I have 4 of 5 different cell locations in each formula, and I hope there is a faster way to get it done than manually doing 250 rows

to maybe help things out, I have another worksheet that has the concatenate formulas for those cells

Excel Workbook
BC
2B2B3
3D2D3
4B5B7
Sheet3
Excel 2003

what can I do to create something so that I have a set of formulas I can copy paste down the line to work, instead of manually changing each entry

so perhaps, I could concantenate these cell combinations into a formula, and then copy and paste that row of formulas all the way down

I assume I would have to use a vlookup to get this working

any ideas?

thanks

Matt
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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