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

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
try this:
Book1
ABCDEFGHI
2sunrisesunriseconsentconsent
3datesfund ivs bankrefilltransaction id n*fund iivs bankrefilltransaction id n*
49/28/20221,500,0001,500,020cap call 1fundi11,600,0001,600,020refill fromfundii1
510/4/2022-2,500,000-2,500,020cap call 2fundi2-3,500,000-3,500,020cap call 1fundii2
6
7
8
9
10
11
12
13
14fundi1fund i1500000
Sheet1
Cell Formulas
RangeFormula
E14E14=INDEX(A4:I5, IFERROR(MATCH(C14,E4:E5, 0),MATCH(C14,I4:I5, 0)), MATCH(D14,A3:I3, 0))
 
Upvote 0
Thank you very much! It works very well.
I was not precise enough though in my example as the formula you wrote works only if you have 2 funds and the truth is I have 35 in my file. 😅
I prepare an example more accurate.
Do you think you can help me as well find a proper formula? 🙏 Without moving anything in the table above.
 

Attachments

  • Screenshot 2023-03-22 181550.jpg
    Screenshot 2023-03-22 181550.jpg
    126.9 KB · Views: 26
Upvote 0
in your first exampl you wre looking for an amount, in the second one a date. just want to clarify what it is you're looking for...
are the fund names: fundi1, fundi2, fundii1, fundii2, etc... ever repeated?
 
Upvote 0
in your first exampl you wre looking for an amount, in the second one a date. just want to clarify what it is you're looking for...
are the fund names: fundi1, fundi2, fundii1, fundii2, etc... ever repeated?
The Fund names are very different from one another unfortunately.
I'm looking for the date AND the amount, yes. But you can do a formula to return only the date, that would be already wonderful.
 
Upvote 0
try this
Excel Formula:
=INDIRECT(ADDRESS(IFERROR(IF(E12,4),5),1))
 
Upvote 0
It doesn't work...
What do 4,5,1 represent? And E12 refers to an empty cell...
 
Upvote 0
4 & 5 refer to which row the value in c14 is found in, and the 1 is the column where the date is.
sorry, i had something in e12 that i didnt include in the previous msg, try this:
Excel Formula:
=INDIRECT(ADDRESS(IFERROR(IF(MATCH(C14,4:4,0),4),5),1))
 
Upvote 0
Sorry, your formula won't work... I have 1500 rows with Transaction ID's in reality.
 
Upvote 0
ok, i'm working on another solution that will still work for you
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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