Find & Replace Using Wildcard in Cell Reference

PetrickM

Board Regular
Joined
Aug 31, 2007
Messages
106
Good afternoon! I have monthly reports to prepare that require a new sheet of data with lots of formulas to be created from a section of data in another spreadsheet. For example - Datasheet contains the information in columns G-AG, rows 1-300. Worksheet 1 has formulas linked to datasheet row 1, columns G-AG. Worksheet 2 has formulas linked to datasheet row 2, colums G-AG. I have to create new worksheets for each new row of data and link it to the appropriate cells in the new row.

I usually copy the last worksheet created, and manually change the cell references which, by new row 10, is excruciating.

Is there a way to use a wildcard in Find and Replace, like:

Find - 'Data Sheet'!?3
Replace - 'Data Sheet'!?4

...where the question-mark-replaced item would remain the same? That way I wouldn't have to manually change all the rows - 'Data Sheet'!D3 to 'Data Sheet'!D4, 'Data Sheet'!AB3 to 'Data Sheet'AB4. I might not make it to row 300 :o)

Thanks for your help!
Marcy
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
That would be a cell reference containing a pointer to be used in the INDEX formulas, like 3 or 4 or whatever.
 
Upvote 0
Okay, I think I've got it now...the pointer is only the row number of the data with which I am working on the data sheet, for example 3, not a formula referencing something. My worksheet formulas would go from ='Data Sheet'!D2 to =INDEX('Data Sheet'!D2:AB12,'Attachment F, 2'!P1,18)), where P1 is my pointer cell containing the row number with which I am curently working, and 18 is my column number.

Wouldn't that have the same problem as vlookup if I need to insert new columns; that I would have to update all the subsequesnt column numbers? Instead of inserting an actual column number, is there a way to make that a reference to a column so when I add new columns, the reference follows the original column?

Thank you!
Marcy
 
Upvote 0
You could point to the column header, like COLUMN('SheetName'!$T$1) instead of hard coding the number.
 
Upvote 0

Forum statistics

Threads
1,224,532
Messages
6,179,388
Members
452,908
Latest member
MTDelphis

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