hi everyone, sorry to come here and demand answers to my excel issues but this one is a bit of a head scratcher...
i've created a bit of a monster of a workbook (only 2 sheets but doing some very funky complex things)
i am basically using a formula to read a box on another sheet and give me the answer i seek...
these sheets have not been made yet so i have had to loop some things and do some mad nesting and IFIFIF type things... i have it super balanced at the minute and doing exactly what i seek...
my issue is that in H5 i have a complex formula...
=IF(B5="","",IF(B5="b",'1'!I1,IF('1'!I1="","",IF(B5="","",'1'!I1))))
i need this formula to copy down to row 100004 of column H, BUT... i need it to do this on the way down...
H6:
=IF(B6="","",IF(B6="b",'2'!I1,IF('2'!I1="","",IF(B6="","",'2'!I1))))
H7:
=IF(B7="","",IF(B7="b",'3'!I1,IF('3'!I1="","",IF(B7="","",'3'!I1))))
etc...
i also have the issue in K5 with a different complex formula...
=IF(AND(H5="",G5=""),"",IF(H5="",-G5,IF('1'!I1="",H5-G5-I5-J5,VALUE(H5))))
again i need it to copy down to row 100004 but only change certain things...
K6:
=IF(AND(H6="",G6=""),"",IF(H5="",-G6,IF('2'!I1="",H6-G6-I6-J6,VALUE(H6))))
K7:
=IF(AND(H7="",G7=""),"",IF(H7="",-G7,IF('3'!I1="",H7-G7-I7-J7,VALUE(H7))))
etc...
ok so that is all pretty straight forward, now the head scratcher...
of all the multiple ways to copy a formula down i am yet to find one that will work for me... i think maybe it will take some VBA but i was hoping not...
my issue is i need these formulas to physically (haha if there is a physically in software) be in these boxes...
as you can see my complex formula is quite balanced and the old =INDIRECT trick wont work as i said this formula needs to be in the box to work...
so my question is... how can i physically copy these down without manually changing each '1'!, '2'!, '3'! all the way to '100004'!
possible solution i tried was...
i can obviously just ctrl+D to change the H5, H6, H7 stuff as excel will recognise and change that...
my issue there is that i believe it changes the !I1 part of the formula also but on each sheet i only want I1, NOT I1, I2, I3...
and obviously this method doesnt change the '1', '2', '3' part...
so my question is...
how can i copy these down, change the formula accordingly, but also actually have the formula in each corresponding cell??
sorry if i am not being clear or left out important points i am new to this excel stuff...
literally days old at it :p
i should probably mention, these sheets in the formula dont exist until i trigger them... this is the reason for the overly complex formula and the reason it needs to actually be in each box.
thank you for reading and if you have a possible solution, i owe you my life :D
Bookmarks