SOLVED
Group by row value and sum a large number of columns
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
KOrt
5 - Atom
‎08-24-2021
10:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi - I have a large dataset that contains duplicate values (lipids) and several hundred columns. I would like to group by each lipid and then sum the area columns (each one is a unique sample ID). The challenge is that there are about 600 separate columns. Any ideas on the best way to approach this? I'm attaching a shortened Excel file to show what the data looks like.
Solved! Go to Solution.
Labels:
- Labels:
- Datasets
5 REPLIES 5
22 - Nova
‎08-24-2021
10:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎08-24-2021
11:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Does this help clarify?
22 - Nova
‎08-24-2021
11:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @KOrt
Here is how you can do it.
Workflow:
1. Using transpose i am converting required columns to rows.
2. Using crosstab while converting it to table i am summing up.
Hope this helps : )
‎08-24-2021
11:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks - I'll give that a shot!
22 - Nova
‎08-24-2021
11:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Happy to help : ) @KOrt
Cheers and have a nice day!
