How to find a value based on 2 criteria: one horizontal and one vertical BUT which is not always in the same column.

Status
Not open for further replies.

smetu

Board Regular
Joined
Jun 12, 2013
Messages
54
Office Version
  1. 365
Is there a way to find a formula in the green box based on the grey and yellow boxes.
The fact that the transaction ID's of Fund I and Fund II are not in the same columns prevents me to find a solution to this problem.....
It's been a head scratching for me for weeeeks!
 

Attachments

  • Screenshot 2023-03-21 201637.jpg
    Screenshot 2023-03-21 201637.jpg
    65 KB · Views: 13

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
this should do the trick

find a value based on 2 criteria.xlsx
ABCDEFGHIJKLMNOPQ
1
2sunrisesunriseconsentconsent
3datesfund ivs bankrefilltransaction id n*fund iivs bankrefilltransaction id n*fund iiivs bankrefilltransaction id n*fund ivvs bankrefilltransaction id n*
49/28/20221,500,0001,500,020cap call 1fundi11,600,0001,600,020refill fromfundii11,600,0001,600,020refill fromfundiii11,600,0001,600,020refill fromfundiv1
510/4/2022-2,500,000-2,500,020cap call 2fundi2-3,500,000-3,500,020cap call 1fundii2-3,500,000-3,500,020cap call 1fundiii2-3,500,000-3,500,020cap call 1fundiv2
63/23/2023test0fundi3test1fundii3test2fundiii3test3985
7
8
9
10
11
12
13
14fundii1dates9/28/2022
final
Cell Formulas
RangeFormula
E14E14=OFFSET(INDIRECT(ADDRESS(3,MATCH(D14,3:3,0))),(MATCH(TRUE,MMULT(IFERROR(FIND(C14,FILTER(A3:Q6,A3:Q3="transaction id n*")),0),TRANSPOSE(SEQUENCE(1,COUNTIF(3:3,"transaction id n*"),1,0)))>0,0))-1,0)
 
Upvote 0
My table is on another sheet called DATA, so I've tried to modify your formula as such:


=OFFSET(INDIRECT(ADDRESS(3,MATCH(D14,Data!3:3,0))),(MATCH(TRUE,MMULT(IFERROR(FIND(C14,FILTER(Data!A3:Q6,Data!A3:Q3="transaction id n*")),0),TRANSPOSE(SEQUENCE(1,COUNTIF(Data!3:3,E3),1,0)))>0,0))-1,0)

But it doesn't work. 😥
 
Upvote 0
My table is on another sheet called DATA, so I've tried to modify your formula as such:


=OFFSET(INDIRECT(ADDRESS(3,MATCH(D14,Data!3:3,0))),(MATCH(TRUE,MMULT(IFERROR(FIND(C14,FILTER(Data!A3:Q6,Data!A3:Q3="transaction id n*")),0),TRANSPOSE(SEQUENCE(1,COUNTIF(Data!3:3,E3),1,0)))>0,0))-1,0)

But it doesn't work. 😥
 
Upvote 0
And I don't know if it's important for you to know but on my file on my sheet "Data", the row is not 3 but 22.
 
Upvote 0
=OFFSET(INDIRECT(ADDRESS(22,MATCH(A22,'[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!22:22,0))),(MATCH(TRUE,MMULT(IFERROR(FIND(G23,FILTER('[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!A22:TQ3000,'[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!A22:TQ22=G22)),0),TRANSPOSE(SEQUENCE(1,COUNTIF('[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!22:22,G22),1,0)))>0,0))-1,0)

(The real name of my sheet is "Private Equity Fund Dashboard.xlsx]DDowns & Distri" and here is my formula that I've tried to do according to yours. But I must be doing something wrong as it doesn't work....)
 
Upvote 0
I put it here again so it's clearer for you:

=OFFSET(INDIRECT(ADDRESS(22,MATCH("Dates",'[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!22:22,0))),(MATCH(TRUE,MMULT(IFERROR(FIND("10DI1",FILTER('[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!A22:TQ3000,'[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!A22:TQ22="Transaction ID n°")),0),TRANSPOSE(SEQUENCE(1,COUNTIF('[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!22:22,"Transaction ID n°"),1,0)))>0,0))-1,0)
 
Upvote 0
so it's on a different row? on a different worksheet? in a different workbook???
 
Upvote 0
can you give me the top-left most cell you're referencing and the bottom-right most cell??
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,217,386
Messages
6,136,285
Members
450,002
Latest member
bybynhoc

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