CSV data extraction

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
LlamaNoHat
Posts: 17
Joined: 18 Apr 2022, 09:38

CSV data extraction

Post by LlamaNoHat » 25 May 2022, 13:36

Hi,

If you have a csv file with a handful of rows, is it possible to write an ahk that reads the first row, extracts only the needed data (For example, only words from cells in columns C and E) and then repeats this onto the next row, but if the C column contains a specific word, it skips that one row altogether?
I imagine after the data extraction it would append a new csv with the filtered out data and then would generate separate descriptions for each row of data collected in a text file.

I checked the CSV library but every time I try to use any of the libraries available for ACH it always pops errors for me ALWAYS, and I keep deleting various unneeded lines to avoid errors but nothing ever works...

User avatar
mikeyww
Posts: 26877
Joined: 09 Sep 2014, 18:38

Re: CSV data extraction

Post by mikeyww » 25 May 2022, 13:55

I don't see why not. Reading some of the documentation may help you. Example

User avatar
rommmcek
Posts: 1474
Joined: 15 Aug 2014, 15:18

Re: CSV data extraction

Post by rommmcek » 25 May 2022, 14:32

Maybe your CSV is Tab separated.
Spoiler

User avatar
flyingDman
Posts: 2817
Joined: 29 Sep 2013, 19:01

Re: CSV data extraction

Post by flyingDman » 25 May 2022, 17:17

@LlamaNoHat if you post you code, you're more likely someone will help you.
14.3 & 1.3.7

Post Reply

Return to “Ask for Help (v1)”