$ every 6th row * # every 6th row base on a criteria every 6th row

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
237
Office Version
  1. 2021
Platform
  1. Windows
Hi all,
Any help with the following would be greatly appreciated.

$ every 6th row * # every 6th row base on a criteria every 6th row
D70 is the first cell containing criteria (Criteria is >0) Last cell D328
Q73 is the first cell containing $ Last cell Q331
Q72 is the first cell containing # Last cell Q330

I need each $ * # if >0 and the results add together.
EG:
D70 >0 Q73 $10 * Q72 5 = $50
D76 >0 Q79 $15 * Q78 2 = $30
D82 <0 Q85 $12 * Q84 2 = $00
The result would be $80

The cell with the result in it is in one workbook and the data cells in another.
The cells between the cells with the required data, may contain; blanks; zeros; formulae or other $ and #

Cheers,
Dave.
 
Glad it all worked out! Thanks for the confirmation :biggrin:

BTW, not sure why I used such an awkward construct to get the SEQUENCE values. This would have been simpler. :eek:
Excel Formula:
=LET(s,SEQUENCE(ROWS(D70:D328)/6,,,6),SUM((INDEX(D70:D328,s)>0)*INDEX(Q70:Q328,s+2)*INDEX(Q70:Q328,s+3)))
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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