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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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
Thanks so much!

And noted about the Google Sheets forum - will make sure to do that next time.

Thanks
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,640
Messages
6,125,974
Members
449,276
Latest member
surendra75

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