Formula which looks across Column for and with same value then applies formula

tomcavs

New Member
Joined
Dec 11, 2018
Messages
8
Hi,

I require a function which looks at a ID in a certain column and only compares values across respective rows for that ID:

1) Function looks at cells containing the same ID
2) Looks at which currency is first alphabetically and then if PAY or REC to determine the Buyer

Issue I am having is restricting the formula to just check across Rows where the ID is the same when dragging down the column

IDCurrencyValueBuyer
503CADRECBuyer
503USDPAY
503CADPAY
503USDREC
504CADPAY
504USDREC
504CADRECBuyer
504USDPAY

<tbody>
</tbody>

<tbody>
</tbody>
Thanks,
Tom
 
sorry ignore above...

Formula looks good. except the Buy / Sell is an output field. I need to formula to look at Currency vs. PAY / REC.

I need to ascertain the buyer and the buyer is the Entity which receives (REC) the currency that is first alphabetically.

 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
sorry ignore above...

Formula looks good. except the Buy / Sell is an output field. I need to formula to look at Currency vs. PAY / REC.

I need to ascertain the buyer and the buyer is the Entity which receives (REC) the currency that is first alphabetically.


You mean the condition must be REC, not Buy?
 
Upvote 0
One more additional query, how can I vlookup so that blanks are ignored in a list of transaction numbers (dupes removed):

Input
Ref NumberBuyer ID
D10517422G123456
D10517422
D20517422
D20517422T1123456
D10517423G123456
D10517423
Output
Ref NumberBuyer ID
D10517422G123456
D20517422T123456
D10517423G123456

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Book1
ABCDEF
1InputOutput
2Ref NumberBuyer IDRef NumberBuyer ID
3D10517422G123456D10517422G123456
4D10517422D20517422T1123456
5D20517422D10517423G123456
6D20517422T1123456
7D10517423G123456
8D10517423
Sheet1


In F3 control+shift+enter, not just enter, and copy down:

=INDEX($B$3:$B$8,SMALL(IF($A$3:$A$8=E3,IF($B$3:$B$8<>"",ROW($B$3:$B$8)-ROW($B$3)+1)),COUNTIFS($E$3:E3,E3)))
 
Upvote 0

Forum statistics

Threads
1,215,374
Messages
6,124,574
Members
449,173
Latest member
Kon123

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