Text to next Cell...

Stan_C

Active Member
Joined
Feb 10, 2012
Messages
353
I came up with a formula for this and I am probably over thinking this but, it fails about 500 cells down.

Col. (A) I have Item data that are names: Col. (B) I have data but would like b1=a1, b16=a2, b31=a3

So with column (B) +15 rows to = (A) +1

2% Milk2% Milk
AmbrosiaRegular
American Chop Suey3-4gm Na (NAS)
Apple Pie2gm Na
Bacon StripLow Fat/Low Chol
Baked BeansFiber Restricted
Baked Chicken BreastConsistent Carb
Baked Ham Pineapple SauceCardiac Diabetic
BBQ Pork on Bun2 gm K
Beef Barley & Veg SoupLactose Restricted
Beef LasagnaVegetarian LactoOvo
Beef Liver & OnionsGluten Restricted
Braised CabbageRenal CSC
Bread PuddingSmall Portion
BroccoliLarge Portion
Broccoli & Cheese QuicheAmbrosia
Brown BreadRegular
Brownie3-4gm Na (NAS)
Brussels Sprouts2gm Na
Carnival CakeLow Fat/Low Chol
Carrot BisqueFiber Restricted
Carrot Raisin SaladConsistent Carb
Cheese OmeletCardiac Diabetic
Chicken Patty2 gm K
Chicken Rice SoupLactose Restricted
Chicken TendersVegetarian LactoOvo
Chilled PineappleGluten Restricted
Cole SlawRenal CSC
ColeslawSmall Portion
CornbreadLarge Portion
Cottage Cheese Fruit PlateAmerican Chop Suey
Cream of WheatRegular
Diced Beets3-4gm Na (NAS)
Egg Salad Sandwich2gm Na
Eggplant Roulette w/ CheeseLow Fat/Low Chol
French Dip SandwichFiber Restricted
French FriesConsistent Carb
French Toast Slice w/ SyrupCardiac Diabetic
Fresh Whole Banana2 gm K
Fruit ToppingLactose Restricted
Garden Salad - Italian DressingVegetarian LactoOvo
Ginger CookiesGluten Restricted
GravyRenal CSC
Green BeansSmall Portion
Grilled Cheese SandwichLarge Portion
Ham Salad SandwichApple Pie

<colgroup><col><col></colgroup><tbody>
</tbody>


I hope this makes sense and sorry for the bad table, my Excel to Forum add on is on my other laptop.

Thank you
 

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.
Where are the black text values coming from in Column B... another column other than Column A?
 
Upvote 0
They are just copied, starting off b1=a1 b2-b15 will always be the same b16 repeats the process just changing b16=a2.
 
Upvote 0
I found a work around for me anyways, simple. Just added an extra row onto each table and this works:

=HLOOKUP($A$1,$A$1:$A$301,ROW(B16)/16+1,FALSE)

Would like to know if there is a better way or well a logical explanation of what I need to think of??
 
Upvote 0
I found a work around for me anyways, simple. Just added an extra row onto each table and this works:

=HLOOKUP($A$1,$A$1:$A$301,ROW(B16)/16+1,FALSE)

Would like to know if there is a better way or well a logical explanation of what I need to think of??
I asked you about where the black text values came from because I thought you wanted to put a formula in Column B and copy it down, getting the red text from Column A and the black text from some place else. But the formula you posted makes it sound like you are putting it in cells B1, B16, B31 etc. manually... is that correct? I'll ask again, in case not... where did the black text values come from... another column via a formula (if so, what formula) or are they just typed in values?
 
Upvote 0
Another way would be
=INDEX($A$1:$A$301,ROWS($B$1:B15)/15) without adding extra row.
The second part of INDEX (which is the row return)as you go down is diveded by 15 so the results are
15/15=1
16/15= 1.06666
....
returning first postion in column A.
in row 16 we have
30/15=2

returning second position in column B.
and so on.
 
Last edited:
Upvote 0
I asked you about where the black text values came from because I thought you wanted to put a formula in Column B and copy it down, getting the red text from Column A and the black text from some place else. But the formula you posted makes it sound like you are putting it in cells B1, B16, B31 etc. manually... is that correct? I'll ask again, in case not... where did the black text values come from... another column via a formula (if so, what formula) or are they just typed in values?

I am sorry, I am trying to get the formula correct and the "yes" I am manually putting the formula by copy and paste.
 
Upvote 0
I am sorry, I am trying to get the formula correct and the "yes" I am manually putting the formula by copy and paste.

Since it will be a static list in Column B, why not just put the direct cell reference in the cells directly?

B1: =A1
B16: =A2
B31: =A3
etc.
 
Upvote 0
Another way would be
=INDEX($A$1:$A$301,ROWS($B$1:B15)/15) without adding extra row.
The second part of INDEX (which is the row return)as you go down is diveded by 15 so the results are
15/15=1
16/15= 1.06666
....
returning first postion in column A.
in row 16 we have
30/15=2

returning second position in column B.
and so on.

You talk about the 2nd part.... have to dived by 16. You are saying to manually input this where the formula will not work? Because that formula will produce a fraction that will not compute correctly going down. That was my original formula, well close to.
 
Upvote 0
Since it will be a static list in Column B, why not just put the direct cell reference in the cells directly?

B1: =A1
B16: =A2
B31: =A3
etc.

Because I have to go down about 400 times..... some like 6,000 cells and do not want to scroll or input data like that over and over again.
 
Upvote 0

Forum statistics

Threads
1,215,972
Messages
6,128,024
Members
449,414
Latest member
sameri

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