Need help organizing binance CSV data - Match Index IF?

MrCameronExcel

New Member
Joined
Apr 21, 2017
Messages
43
Office Version
  1. 365
Platform
  1. Windows
Hi,

Has anyone organized the Binance CSV file?

At the moment, I am trying to fill in the Ticker column on CONVERTED TABLE for transactions (Transaction Related), using the crypto ticker not GBP/USDT. The left table consists of the Binance CSV data. In th CONVERTABLE TABLE Timestamp column consists of UTC_Time data but with duplicates removed.

I've tried combinations of VLOOKUP and IF with no luck.

I need to vlookup the Timestamp, then if the operation that says "_______" or "______", and if the Coin says "_______" or "______", return coin "______" (column 4). Something along these lines.

Please comment if you have any questions. your help is appreciated!

BINANCE CSV DATACONVERTED TABLE
UTC_TimeAccountOperationCoinChangeRemarkUSD ConversionTimestampExchange or WalletTickerAmount Purchased/Sold, Withdrawn/DepositedToken Price at PurchaseNet Invested (USD)Fees
19/03/2021 18:34SpotDepositGBP2027.434119/03/2021 18:34Binance
24/03/2021 04:05SpotTransaction RelatedADA24.6Tokens24/03/2021 04:05Binance
24/03/2021 04:05SpotTransaction RelatedGBP-20-27.434124/03/2021 04:07Binance
24/03/2021 04:07SpotPOS savings purchaseADA-24.6Tokens25/03/2021 06:36Binance
25/03/2021 06:36SpotDepositGBP150205.7557525/03/2021 06:43Binance
25/03/2021 06:43SpotTransaction RelatedVET2426Tokens26/03/2021 00:35Binance
25/03/2021 06:43SpotTransaction RelatedGBP-150-205.7557526/03/2021 20:44Binance
26/03/2021 00:35SpotPOS savings interestADA0.00525Tokens26/03/2021 21:52Binance
26/03/2021 20:44SpotDepositGBP100137.170527/03/2021 00:33Binance
26/03/2021 21:52SpotTransaction RelatedGBP-100-137.170527/03/2021 06:08Binance
26/03/2021 21:52SpotTransaction RelatedUSDT137.194137.193628/03/2021 00:35Binance
27/03/2021 00:33SpotPOS savings interestADA0.00525Tokens29/03/2021 01:21Binance
27/03/2021 06:08SpotBuyVET1497Tokens30/03/2021 01:21Binance
27/03/2021 06:08SpotTransaction RelatedUSDT-137.13-137.125231/03/2021 01:22Binance
27/03/2021 06:08SpotFeeVET-1.497Tokens01/04/2021 01:21Binance
28/03/2021 00:35SpotPOS savings interestADA0.00525Tokens02/04/2021 01:21Binance
29/03/2021 01:21SpotPOS savings interestADA0.00525Tokens02/04/2021 08:22Binance
30/03/2021 01:21SpotPOS savings interestADA0.00525Tokens02/04/2021 09:29Binance
31/03/2021 01:22SpotPOS savings interestADA0.00525Tokens03/04/2021 01:22Binance
 

Attachments

  • Binance CSV.png
    Binance CSV.png
    79.1 KB · Views: 56

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Can you clarify

I need to VLOOKUP the Timestamp, (What will be the lookup value)

then if the operation that says "_______" or "______", and if the Coin says "_______" or "______", return coin "______"
(What do you mean by "_______" or "______")


(column 4). Something along these lines.
(What is the meaning of above line)

And can you post some expected results? for example
 
Upvote 0
Yes sorry if the question was so unclear.

I want to vlookup timestamp, for example "19/03/2021 18:34" or I3 in table. Have the table array be A3:G21.

Then the return value, if the respective Account column entry is "Coin-Futures" return blank (" "), if the entry is Spot then look in Operation column and if the respective entry is "Deposit" return blank, if the entry is "Transaction Related", then return value in Coin column except for entry's "GBP" and "USDT"

Does this help? Please let me know if further clarification is needed.
I recognise that I will need to expand upon the logic I wrote above, but I think if I can get some help with starting out, I can expand the formula to be fully inclusive of the 3000 rows of data I have to sort through.
Thanks
 
Upvote 0
What you want if Coin column has entry's "GBP" and "USDT"?
 
Upvote 0
What you want if Coin column has entry's "GBP" and "USDT"?
I want it to search another row in the table array for the same vlookup value (eg "19/03/2021 18:34" or I3), and return the Coin ticker that isn't "GBP" or "USDT", but still matching the criteria specified for Account and Operation columns. There are duplicates of this exact Timestamp (ie "19/03/2021 18:34") which are indicating a trade - so less GBP to buy VET as an example. It's the cryptocurrency ticker I want to be found for that trade.
 
Upvote 0
Not sure if I fully understand what you want but

Try

Excel Formula:
=IF(AND(C3="Transaction Related",OR(D3={"GBP","USDT"})),"",IF(VLOOKUP(I3,$A$3:$G$21,2,0)="Coin-Futures","",IF(AND(VLOOKUP(I3,$A$3:$G$21,2,0)="Spot",C3="Deposit"),"",D3)))
 
Upvote 0

Forum statistics

Threads
1,223,889
Messages
6,175,223
Members
452,620
Latest member
dsubash

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