Adding an extra If function in to Array Formula

andrewsco

New Member
Joined
Aug 26, 2019
Messages
3
Hi everyone,

I have a formula in a finance transaction document that uses the following formula to return the latest date in a list that a certain stock was purchased:

=iferror(ArrayFormula(if(AE3="","",(MAX(IF(J$3:J$1001=AE3,A$3:A$1001))))),"")

AE = Stock ticker
J = Stock Ticker
A = a unique date for each transaction

What I would like to do is add to this formula that returns the same type of thing but ONLY if the transaction Account (Column C) = "RESP"

I'm sure there is a simple way to modify the formula above but i've tried for hours and can't seem to figure it out.

Hoping someone might be able to help based on the above description. This is in google sheets by the way as opposed to Excel but imagine the formula will be the same.

Thanks in advance
Andrew
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Assuming Sheets works the same way as Excel with array formulae try
Excel Formula:
=iferror(ArrayFormula(if(AE3="","",(MAX(IF((J$3:J$1001=AE3)*(C$3:C$1001="Resp"),A$3:A$1001))))),"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,958
Messages
6,175,643
Members
452,663
Latest member
MEMEH

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