edwardpestian
Technical User
Okay, so I've got the first formula below working, but I need to expand on it. Should I write a custom function in VBA?How? Or can I somehow combine all of these functions into one?
So what I'm looking at is:
I need it to perform the same OFFSET function, except with a change to the range. I need it to calculate based off of
(A1)+100 IF H8<>"Day"
(A1)+101 IF H8<>"Swing"
(A1)+102 IF H8<>"Grave"
If the first function returns nothing "", then perform the second, and so forth.
=IF(OR(Date=0,$H$8<>"Day"),"",OFFSET(Data!$E$5,ROW ($A$1)+101,MATCH($G$8,Data!$F$3:$CT$3,0)))
ELSEIF
=IF(OR(Date=0,$H$8<>"Day"),"",OFFSET(Data!$E$5,ROW ($A$1)+102,MATCH($G$8,Data!$F$3:$CT$3,0)))
ELSEIF
=IF(OR(Date=0,$H$8<>"Day"),"",OFFSET(Data!$E$5,ROW ($A$1)+103,MATCH($G$8,Data!$F$3:$CT$3,0)))
I'm stuck on this one for days...
Thanks in advance for any help or feedback.
EP
So what I'm looking at is:
I need it to perform the same OFFSET function, except with a change to the range. I need it to calculate based off of
(A1)+100 IF H8<>"Day"
(A1)+101 IF H8<>"Swing"
(A1)+102 IF H8<>"Grave"
If the first function returns nothing "", then perform the second, and so forth.
=IF(OR(Date=0,$H$8<>"Day"),"",OFFSET(Data!$E$5,ROW ($A$1)+101,MATCH($G$8,Data!$F$3:$CT$3,0)))
ELSEIF
=IF(OR(Date=0,$H$8<>"Day"),"",OFFSET(Data!$E$5,ROW ($A$1)+102,MATCH($G$8,Data!$F$3:$CT$3,0)))
ELSEIF
=IF(OR(Date=0,$H$8<>"Day"),"",OFFSET(Data!$E$5,ROW ($A$1)+103,MATCH($G$8,Data!$F$3:$CT$3,0)))
I'm stuck on this one for days...
Thanks in advance for any help or feedback.
EP