I have two columns of data (D & E) and the following equation works fine to calculate a straight line that best fits my data:
INDEX(LINEST($D$8:$D$18,$E&8:$E$18),2)
However, I need to calulate it only using data that meets a certain criteria (>=1). I tried the following, but got a "VALUE" error:
INDEX(LINEST(IF($D$8:$D$18>=1,$D$8:$D$18),IF($D$8:$D$18>=1,$E&8:$E$18)),2)
Any help would be greatly appreciated.
Thanks,
Dave
INDEX(LINEST($D$8:$D$18,$E&8:$E$18),2)
However, I need to calulate it only using data that meets a certain criteria (>=1). I tried the following, but got a "VALUE" error:
INDEX(LINEST(IF($D$8:$D$18>=1,$D$8:$D$18),IF($D$8:$D$18>=1,$E&8:$E$18)),2)
Any help would be greatly appreciated.
Thanks,
Dave