Array formula?

derek.hughes

Board Regular
Joined
Mar 16, 2012
Messages
53
I have this formula:
=EXP(INDEX(LINEST(LN($P$9:$P$14),$C$9:$C$14),1,2))*EXP(1)^(INDEX(LINEST(LN($P$9:$P$14),$C$9:$C$14),1)*C9)

I am essentially calculating the value at specific points on an exponential trendline.

I want it to ONLY calculate this equation when there are values in cells P9:P14 and C9:C14. I am thinking some sort of array where:
=IF(AND(P9:P14<>0,C9:C14<>0)....

...but then I get stuck.

Help!

Thanks in advance.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I get the concept of that link, but I'm struggling to put the two together successfully...this is a stretch of my excel knowledge as is....


How can I combine the formula at the link with my own?
 
Upvote 0
I think:

=EXP(INDEX(LINEST(LN(N(OFFSET($P$9:$P$14,SMALL(IF(ISNUMBER($P$9:$P$14),ROW($P$9:$P$14)-ROW($P$9)),ROW(INDIRECT("1:"&COUNT($P$9:$P$14)))),,1))),N(OFFSET($C$9:$C$14,SMALL(IF(ISNUMBER($C$9:$C$14),ROW($C$9:$C$14)-ROW($C$9)),ROW(INDIRECT("1:"&COUNT($C$9:$C$14)))),,1))),1,2))*EXP(1)^(INDEX(LINEST(LN(N(OFFSET($P$9:$P$14,SMALL(IF(ISNUMBER($P$9:$P$14),ROW($P$9:$P$14)-ROW($P$9)),ROW(INDIRECT("1:"&COUNT($P$9:$P$14)))),,1))),N(OFFSET($C$9:$C$14,SMALL(IF(ISNUMBER($C$9:$C$14),ROW($C$9:$C$14)-ROW($C$9)),ROW(INDIRECT("1:"&COUNT($C$9:$C$14)))),,1))),1)*C9)

confirmed with Ctrl+Shift+Enter.
 
Upvote 0

Forum statistics

Threads
1,215,124
Messages
6,123,190
Members
449,090
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top