Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
B1 contains an "old" value; C1 contains its "new" value
B47 contains an "old" value; C2 contains its "new" value B93 contains an "old" value; C3 contains its "new" value B139 contains an "old" value; C4 contains its "new" value How do write a formula to replace the respective "old" values with their "new" values? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
=INDIRECT("B"&1+46*(ROW()-1)) HTH, Elkar "GARY" wrote: B1 contains an "old" value; C1 contains its "new" value B47 contains an "old" value; C2 contains its "new" value B93 contains an "old" value; C3 contains its "new" value B139 contains an "old" value; C4 contains its "new" value How do write a formula to replace the respective "old" values with their "new" values? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Elkar,
Your formula doesn't refer to Col C. gary |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Nope, it should be entered in Column C, then copied down.
"GARY" wrote: Hi Elkar, Your formula doesn't refer to Col C. gary |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
in VBA try this:
Sub test() Dim r For r = 0 To 9 Cells(r * 46 + 1, 2) = Cells(r + 1, 3) Next End Sub |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I thought it be best to provide an example of my spreadsheet.
(I've changed the rows and columns to fit the posting space) I want to replace: the middle word in C1 with the word in B1 the middle word in C10 with the word in B2 the middle word in C19 with the word in B3 the middle word in C28 with the word in B4 the middle word in C37 with the word in B5 (Column D contains the results) B C D 1 pig cat dog horse cat pig horse 2 cow 3 pansy 4 rat 5 mouse 6 7 8 9 10 duck fish flea duck cow flea 11 12 13 14 15 16 17 18 19 mutt ant bee mutt pansy bee 20 21 22 23 24 25 26 27 28 hog puppy bug hog rat bug 29 30 31 32 33 34 35 36 37 mule germ fly mule mouse fly |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to switch between relative and absolute references | New Users to Excel | |||
Named formulas in CHOOSE need to be Relative references when paste | Excel Worksheet Functions | |||
I want chart source data to be relative references, not absolute. | Charts and Charting in Excel | |||
Confused about relative references in named formulas | Excel Worksheet Functions | |||
Averaging using relative references across sheets | Excel Discussion (Misc queries) |