CSV Rank and Running Total
Add group-wise ranks, lag values and cumulative sums in a chosen numeric order.
Processing stays in your browser. Numeric stable ordering; equal values share rank/dense-rank while running totals follow source order within ties.
How to use the csv rank and running total
Review the labeled settings and example for csv rank and running total. Paste your own input or use the optional UTF-8 upload where shown. Choose Run tool, inspect the output and any visual preview, then copy or download the result. Changing input clears the previous result.
Example
Scores 10,20,20 have ranks 1,2,2 and dense ranks 1,2,2.
Good to know
Numeric stable ordering; equal values share rank/dense-rank while running totals follow source order within ties.
Prepare a table that can be checked and reused
Start with a small extract containing headings and several representative rows. Include a quoted delimiter, an empty cell and a non-ASCII value if your real table has them. Decide which columns are identifiers and which are measurements before transforming the file. A postal code with leading zeros is usually an identifier; treating it as a number can change its meaning. Keep an untouched source copy for comparison.
Inputs and settings explained
- Input
- Paste the input as plain text using the demonstrated structure. Keep meaningful line breaks, quotation marks and separators. Start with a small representative example and increase its size only after the output is understood. Read the tool's restrictions before including unsupported syntax or binary data.
See the demonstration value
team,name,score A,Alex,10 A,Sam,20 A,Kim,20 B,Lee,5
- Group column
- Match the name in your input exactly, including spaces and capitalization. Check that the selected field represents the intended identifier, measurement or category. A similarly named column can contain a different unit or record type.
See the demonstration value
team
- Numeric value column
- Match the name in your input exactly, including spaces and capitalization. Check that the selected field represents the intended identifier, measurement or category. A similarly named column can contain a different unit or record type.
See the demonstration value
score
- Order
- Choose the order setting that matches your task. Available choices: Ascending; Descending. The supplied example selects Ascending. Compare the result after changing this setting; the options describe different operations or conventions.
How to review the result
Compare the number of records, column names and a few known cells after processing. Delimiters, quote rules and line endings matter when another application opens the result. Blank cells are not automatically zero, and text that resembles a date may be interpreted differently by a spreadsheet. Review any newly calculated columns using one row you can calculate independently. Check export notes for formula escaping before comparing raw CSV bytes with values displayed in a spreadsheet.
- Confirm headings are unique and each row has the expected number of columns.
- Check join keys, duplicate records and missing-value conventions before interpreting totals.
- Open an exported sample in the destination program and inspect identifiers and dates.
Common questions about this workflow
Why can the same CSV look different in a spreadsheet?
Spreadsheet applications can infer numbers, dates and formulas when opening text. Their delimiter and locale settings also differ. Use the import dialog to select explicit column types when identifiers or dates must be preserved.
Is a transformed table automatically a reliable dataset?
No. A clean format cannot correct missing observations, selection bias or inaccurate source records. Document the source, selection rules and transformations, and retain row identifiers so unexpected results can be traced back.
Built by DevBricks Technologies. Found an unexpected result in CSV Rank and Running Total? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.