Charlene123
New Member
- Joined
- Jun 13, 2013
- Messages
- 7
I'm trying to use a macro to insert a formula. But the formula needs to reference the current row and column. Can someone me understand how to do this?
"R[-126]C1" - should be - $a & current row
"R2C" - should be - current column & $2
"=SUMIFS([Current_Firm_OS_BP1100.xlsx]Sheet1!C10,[Current_Firm_OS_BP1100.xlsx]Sheet1!C4,"">""&R2C,[Current_Firm_OS_BP1100.xlsx]Sheet1!C4,""<""&R2C+6,[Current_Firm_OS_BP1100.xlsx]Sheet1!C3,""1024"",[Current_Firm_OS_BP1100.xlsx]Sheet1!C8,R[-126]C1)"
Also, I want to insert this formula based on column E having the text "firm orders"
THANKS in advance for any help!
"R[-126]C1" - should be - $a & current row
"R2C" - should be - current column & $2
"=SUMIFS([Current_Firm_OS_BP1100.xlsx]Sheet1!C10,[Current_Firm_OS_BP1100.xlsx]Sheet1!C4,"">""&R2C,[Current_Firm_OS_BP1100.xlsx]Sheet1!C4,""<""&R2C+6,[Current_Firm_OS_BP1100.xlsx]Sheet1!C3,""1024"",[Current_Firm_OS_BP1100.xlsx]Sheet1!C8,R[-126]C1)"
Also, I want to insert this formula based on column E having the text "firm orders"
THANKS in advance for any help!