Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9788

What's the formula to select non matching rows by comparing rows in google sheets query?

$
0
0

In google sheets query,I need to get only non matching debit rows by comparing rows say if amount debited (S1 flag - row 1) matches with amount credited (S1 flag - row 3), it needs to be excluded in the result so I only get know the outstanding debit amount which needs to be credited.

FlagTransactionAmount
S1Debit10
S1Debit10
S1Credit10
S2Debit20
S3Debit50
S3Credit50

Result needs to be look like below:

FlagTransactionAmount
S1Debit10
S2Debit20

Thanks in advance.

My Basic query:=QUERY(K2:M9," select K, L, Mwhere K is not null and L = 'Debit'")


Viewing all articles
Browse latest Browse all 9788

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>