IF Statement Within different Rows

Oprichnick

Board Regular
Joined
May 30, 2013
Messages
69
Hy all,
I'm trying to use a Forecast function in which I just want to use the non blank cells. The formula:

=FORECAST($QG$7;IF(PW8:QF8<>0;PW8:QF8);IF(PW8:QF8<>0;$PW$7:$QF$7))

In the second block of the Forecast function "IF(PW8:QF8<>0;PW8:QF8)" it returns only the non blank cells;
However in the third block "IF(PW8:QF8<>0;$PW$7:$QF$7)" it returns me all x values.

I want to use only the X values to which there are Y values.

Thanks in advance,

Pedro
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi Oprichnick,

To consider non zero and non blank cells, you can update your function as if((PW8:QF8<>0)*(PW8:QF8<>""),True,False).


Regards,
DILIPandey
 
Upvote 0
Hi Oprichnick,

To consider non zero and non blank cells, you can update your function as if((PW8:QF8<>0)*(PW8:QF8<>""),True,False).


Regards,
DILIPandey

Thanks for the quick and useful reply.


I have another related question... Don't know if I should begin another thread.

I'm also trying to use the Linest function to obtain a polynomial. I have this formula:

={LINEST(IF(Q10:Z10<>"";Q10:Z10;"");IF(Q10:Z10<>"";Q$7:Z$7;"")^{1;2}){


But again I'm struggling with the blanks... It always returns #VALUE!

What may be wrong with the above formula?

Regards
 
Upvote 0
Glad to help.

Also, in your new query, I need to know what you are trying to achieve with below part of the formula:-

^{1;2}){


Regards,
DILIPandey
 
Upvote 0
Actually, it looks like you might be on a non-English version of Excel. Not quite sure how the array constants should be translated for your version. Perhaps:

=LINEST(INDEX(10:10;N(IF(1;MODE.MULT(IF(Q10:Z10<>{"".""};COLUMN(Q10:Z10))))));INDEX($7:$7;N(IF(1;MODE.MULT(IF(Q10:Z10<>{"".""};COLUMN(Q$7:Z$7))))))^{1\2})

though I'm afraid I'm not positive.

Regards
 
Upvote 0
@ XOR LX ...

Brilliant ... :)

Love your post on your site ... !!!

Cheers

James

:wink:
 
Upvote 0
Cheers, James! :)

You don't happen to know what those array constant separators for non-English systems should be, do you?
 
Upvote 0
Hello XOR LX,

Had to fight with these international issues ...

It does depend on the local Windows (Not Excel) settings:
Control Panel > Regional and Language Options > Regional Options

and they can be customized by each individual ... :wink:


HTH
 
Upvote 0
Thanks, James. Hopefully, then, the default settings are as I gave in this case.

Cheers
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

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