Copy formula to next row

JerryKaminsky

New Member
Joined
Aug 12, 2009
Messages
21
I have a 3 formulas in column E-G that produce data from columns A-D. I would like to hide columns E-G. My problem is I cannot get the formula to repeat itself when data is entered on the next row. There is a macro that creates a text file for each row of data based on the results in columns E-G. Below are the formulas of each column and the data array that adds additional data to the file.

= CHAR(34) & A2 & CHAR(34) & VLOOKUP(C2,FileDefs,2,FALSE)
=VLOOKUP(C2,FileDefs,3,FALSE) & CHAR(34) & D2 & CHAR(34) & VLOOKUP(C2,FileDefs,4,FALSE)
=A2 & "." & VLOOKUP(C2,FileDefs,5,FALSE) & RIGHT(B2,1)

Entity TypeHeader SuffixRecord Prefix - Client CodeRecord SuffixFile Extension
990​
,,,,,"M""RETURN OPTIONS","0","0","0","CLIENT CODE",,"O"EX
1040​
,,,,,,,,,"M""BASIC OPTIONS","0","0","0","CLIENT CODE",,"O"AX
1041​
,,,,,"M""GENERAL OPTIONS","0","0","0","02-CLIENT CODE",,"O"FX
1065​
,,,,,"M""RETURN OPTIONS","0","0","0","CLIENT CODE",,"O"PX
1120​
,,,,,"M""GENERAL INFORMATION","0","0","0","CLIENT CODE",,"O"CX
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,214,589
Messages
6,120,415
Members
448,960
Latest member
AKSMITH

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