MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 8th, 2002, 10:22 AM   #1
rdeters
New Member
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 40
Default

What I am trying to do is take a 7 column by 500 row grid of information from a worksheet and populate it into a grid that is 1 column by 3500 rows on another worksheet. In other words 7 columns of data will become 1 column with 7 rows. I can not use the copy & paste function, because the original grid is initially blank. While info is being entered into the grid, I want it to be displayed on the next worksheet in the format I described. I have tried the transpose function and it does not seem to work for me, I may be doing something wrong though. Any help would be appreciative.

Here is an example of the formulas:
cell A1 : ='Instrument Tags'!T3
cell A2 : ='Instrument Tags'!U3
cell A3 : ='Instrument Tags'!V3
cell A4 : ='Instrument Tags'!W3
cell A5 : ='Instrument Tags'!X3
cell A6 : ='Instrument Tags'!Y3
cell A7 : ='Instrument Tags'!Z3

When I try to carry these over to the next 7 rows, here is what the formulas look like:
cell A8 : ='Instrument Tags'!T10
cell A9 : ='Instrument Tags'!U10
cell A10 : ='Instrument Tags'!V10
cell A11 : ='Instrument Tags'!W10
cell A12 : ='Instrument Tags'!X10
cell A13 : ='Instrument Tags'!Y10
cell A14 : ='Instrument Tags'!Z10

But this is what I am assuming it sould look like:
cell A8 : ='Instrument Tags'!T4
cell A9 : ='Instrument Tags'!U4
cell A10 : ='Instrument Tags'!V4
cell A11 : ='Instrument Tags'!W4
cell A12 : ='Instrument Tags'!X4
cell A13 : ='Instrument Tags'!Y4
cell A14 : ='Instrument Tags'!Z4


rdeters is offline   Reply With Quote
Old May 8th, 2002, 02:33 PM   #2
rdeters
New Member
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 40
Default

rdeters is offline   Reply With Quote
Old May 8th, 2002, 02:39 PM   #3
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

is this the same worksheet as your earlier one ?

http://www.mrexcel.com/board/viewtop...c=7571&forum=2

Chris Davison is offline   Reply With Quote
Old May 8th, 2002, 02:45 PM   #4
rdeters
New Member
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 40
Default

Kind of, it is the same file, but I took you're advice from the ealier one and changed the excel file/program a bit to make it less difficult in the end. The problem I am now facing seems to be somewhat easier. But I guess not, considering I haven't figured it out yet. What's your opinion on this Chris?
rdeters is offline   Reply With Quote
Old May 8th, 2002, 02:54 PM   #5
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

My opinion is it's tricky.... just this above example is proving tricky (i'm working on it now)

(although I'm no expert by any stretch of the imagination!)

nearly there though....
Chris Davison is offline   Reply With Quote
Old May 8th, 2002, 02:56 PM   #6
rdeters
New Member
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 40
Default

A little bit of more input: Looking at the incremental format that excel is generating when I pull down the cells, the various groups go: 3,10,17,24,31,etc. (I of course want 3,4,5,6,7,etc,) The mathmatical formula turns out to be y=((x-3)/7)+3, where x is the row that excel is inputing into the cell when dragged down. In the previos reply that you indicated on the other problem, you said that you could indicate an indirect input for the row number, is this possible with this mathematical formula that I have supplied? I hope this explanation is clear.
rdeters is offline   Reply With Quote
Old May 8th, 2002, 03:28 PM   #7
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

purely for this example....

try this in your other sheet, cell A1 :

=INDIRECT("'Instrument Tags'!"&CHAR(SUBSTITUTE(MOD(ROW(),7),0,7)+83)&ROUNDUP((ROW()/7),0)+2)

and just copy down as far as is needed

If anyone can follow what I've done here, I'd appreciate it if you could suggest an easier or tidier way : the logic of transposing coupled with then dropping down a row after each 7th record was a bit of a mind-twister.... hence the ugly formula

but it works...so this should get you started



_________________
Hope this helps,
Chris


be careful to ensure the single quotes around ....instrument tags.... it's sometimes easy to miss them on this board

[ This Message was edited by: Chris Davison on 2002-05-08 14:29 ]

just to test fully : this formula in A1 copied down to row 3486, produces the follwoing result in cell 3486 :

"Z500"

which is the 7th column (column Z) on row 500
from your Instruments Tags sheet


[ This Message was edited by: Chris Davison on 2002-05-08 14:44 ]
Chris Davison is offline   Reply With Quote
Old May 8th, 2002, 03:36 PM   #8
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

Quote:
The mathmatical formula turns out to be y=((x-3)/7)+3
I like your thought processes..... this is exactly the same sort of logic I've been applying to something similar but of a different problem scenario....

[a tip, if you're used to looking at this sort of logic-solving relating to rows : use excel's fractional formats, rather than decimals : it'll maybe help highlight an error in terms of row numbers 11 and 17 as 11/17 rather than an error of 0.647058824 which means nothing !]

Anyhow, hope the above helps, although I suspect it may not be the end of your problem



__________________
:: Pharma Z - Family drugstore ::
Chris Davison is offline   Reply With Quote
Old May 8th, 2002, 03:37 PM   #9
rdeters
New Member
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 40
Default

Chris, you are the man. Thank you ever so much. I have no idea how you figured this out, but that is pretty good! Thanks again.
rdeters is offline   Reply With Quote
Old May 8th, 2002, 04:01 PM   #10
Chris Davison
MrExcel MVP
 
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
Default

no worries...

I'll run through it if you want, step by step

I suspect you *will* follow it given your own input of that mathmatical formula you suggested....

give me a shout and I'll post the individual parts, although it may not be today as it's 11pm here and to be honest this single post has exhausted me !
Chris Davison is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes