I got the in between part working but now the problem I have is when I combine my formulas.
Let's assume i'm working on Row 6
If ALL have no data then "No Data"
=IF(AND(JG6=0,FU6=0,CI6=0),"No Data"
IF HgA1c>=1 and it's value is within 12 weeks of fbs and ppbs's values, then HgA1c
IF(JG6>=1,IF(AND(JM6>=MAX(CO6,GA6)-12,JM6<=MAX(CO6,GA6)+12),JK6,
ALL HAVE VALUE HgA1C IS OUTSIDE OF 12 WEEKS
If all readings have value and HgA1c value is outside of 12 weeks of other readings and FBS is less than PPBS then FPS
= IF(AND(JG6>=1,FU6>=1,CI6>=1,CO6<GA6), CM6)
If all readings have value and HgA1c value is outside of 12 weeks of other readings and PPBS>FBS then PPBS
=IF(AND(JG6>=1,FU6>=1,CI6>=1,GA6>CO6), FY6)
If HgA1c<>0 and FBS<>0 and PPBS=0 and HgA1c>12wks then FBS
=IF(AND(JG6>=1,FU6=0,CI6>=1), CM6
If HgA1c<>0 and FBS=0 and PPBS<>0 and HgA1c>12wks then PPBS
=IF(AND(JG6>=1,FU6>=1,CI6=0),FY6
IF HgA1C IS ZERO
If HgA1c=0 and PPBS=0 and FBS>=1 then FBS
=IF(AND(JG6=0,FU6=0,CI6>=1),CM6,
If HgA1c=0 and PPBS<>0 and FBS=0 then PPBS
=IF(AND(JG6=0,FU6>=1,CI6=0),FY6,
If HgA1c=0 and PPBS>=1 and FBS>=1 and FBS<PPBS then FBS
IF(AND(JG6=0,FU6>=1,CI6>=1,CO6<GA6),CM6)
If HgA1c=0 and PPBS>=1 and FBS>=1 and PPBS<FBS then PPBS
IF(AND(JG6=0,FU6>=1,CI6>=1,GA6<CO6),FY6)
Some of them will have 'False' but most work like they're supposed to.
Attached is the sheet. All these formulas are in column JQ
sample.xlsx
Bookmarks