=([@ColumnA]=[ColumnA])*([@ColumnB]=[ColumnB])

vadimtrofi

New Member
Joined
Dec 10, 2018
Messages
3
please help me: =([@ColumnA]=[ColumnA])*([@ColumnB]=[ColumnB]) F9 {0:0:0:0:0:1:1:0:0:0:1:0} How to make an array formula to get the row number of the last of "1"?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi vadimtrofi,

I'm not quite sure what are you storing in your table so it's hard to adjust your formula directly. Taking some similar formula as an example:
=(A1:A12)*(B2:B12)

Let's assume that the result of this formula (F9) is exactly the same:
{0:0:0:0:0:1:1:0:0:0:1:0}

If you want to retrieve the row number of the last "1", you need to use the following Array formula (Ctrl+Shift+Enter):
=LARGE(IF((A1:A12)*(B1:B12),ROW(A1:A12),""),1)

The result of this formula is 11. Hope you will find it helpful.
 
Upvote 0
Another option if you have Excel ver. 2010 or later may be something like this:
Excel Workbook
ABCDE
1trty
2uy7
3iu
4ty
5rr
6ey
7ty
8iu
9oy
Sheet
 
Upvote 0
Thanks for your quick response.
I have found a solution myself ={MAX (IF ([@ColumnA]=[ColumnA]])*([@ColumnB]=[ColumnB])*([@ColumnC]=[ColumnC]),[ColumnD]))}
In [ColumnD] I have days of year, so I've got the last date - exactly what I need. I use Excel 2013.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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