# Product IFS ??????

#### LikeToLearn

##### New Member
Hello everyone! It's my first time posting so forgive me if I break some unwritten rules!

I am working with many years of historical financial data of a handful of stocks. In the first column I have dates (xx/yy/zzzz), in the next column I used =year() to tell me the year the return took place. In the following columns I have the daily return of each stock I am working with.

I would like to have a formula to calculate the PRODUCT of the returns IF the year in my table matches the returns years. Is that possible? So this formula should see that it is 2012 in my table and find all the 2012 returns and take the product of them.

### Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
You don't really mention the ranges involved...

Control+shift+enter, not just enter:

=PRODUCT(IF(YEAR(DateRange)=2012,ReturnsRange))

Is this something that helps you out?

exactly! thank you very much! I will try to explain the ranges a little more next time.

exactly! thank you very much! I will try to explain the ranges a little more next time.

You are welcome.

Replies
2
Views
275
Replies
2
Views
434
Replies
3
Views
331
Replies
6
Views
252
Replies
8
Views
596

1,218,792
Messages
6,144,512
Members
450,550
Latest member
Melanie_Annies

### 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.

### Which adblocker are you using?

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

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