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: 22
that's not quite what i meant. if there are more or less cells with "Transaction ID" as the value in row 22 than there are in a22:tq22 then that will throw off the function.

try putting these in somewhere:
Excel Formula:
=FILTER('[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!$A$22:$Q$25,'[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!$A$22:$TQ$22="transaction id n*"))
&
Excel Formula:
=COUNTIF('[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!$22:$22,"transaction id n*")

the number from the second one should match the number of columns returned by the first one
What do you mean by "try to put this somewhere"? Where should I put it?
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
put it in anywhere, maybe a new sheet that you can delete after. this is just to test and see if the numbers match.
i'm trying to trouble shoot a viable solution that i cannot see the sheet for
 
Upvote 0
put it in anywhere, maybe a new sheet that you can delete after. this is just to test and see if the numbers match.
i'm trying to trouble shoot a viable solution that i cannot see the sheet for
Got it. Done it.
So your 1st formula returns: #VALUE!
And your 2nd formula returns: 57
 
Upvote 0
Is it on purpose that the ranges in your 1st formula are A$22:Q$25 and then A$22:TQ$22?
 
Upvote 0
no, the first part should be the entire table searching data in which i think is a22:tc2752, the second part is right
=FILTER('[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!$A$22:$TQ$2752,'[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!$A$22:$TQ$22="transaction id n*"))
 
Upvote 0
no, the first part should be the entire table searching data in which i think is a22:tc2752, the second part is right
=FILTER('[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!$A$22:$TQ$2752,'[Private Equity Fund Dashboard.xlsx]DDowns & Distri'!$A$22:$TQ$22="transaction id n*"))
Now I get: #SPILL!
 
Upvote 0
I have an idea.
If you can tell me a formula that will write D2 when I ask where is Monday, and C2 when I ask where is Soccer like in the table here.

1680096424791.png


Then I think I might have a solution to my problem.

Do you know a formula that can do that?
 
Upvote 0
Now I get: #SPILL!
so you'd need to put it somewhere that has a lot of room. it cant show everything that the formula is asking it to return due to other values in the way
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,836
Messages
6,181,248
Members
453,026
Latest member
cknader

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