Condense data by removing blank rows (without deleting)

zjamespryor

New Member
Joined
Aug 7, 2014
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am using Google Sheets for this project. I am wondering if there is a way to condense data without deleting rows. In my example below I have the dataset being collected by a Google Form. In cell A9 I have a formula to grab values out of the data set and transpose them. I am wondering if there is an easy way to condense the data that is being collected there so I can reference it elsewhere more easily. If it can't be done in the transposed form, can it be done in the INDEX function to the right? Thank you for any help you can offer. The ultimate solution I am working towards is to be able to lookup the person's name and show the sports in the dataset that have a value.
Book1
ABCDEFGHIJ
1Dataset
2SchoolNameTrackWrestlingGolfBaseballLookup:James
3VirginiaJamesGoldSilverBronzeSportsDesired Result:
4CaliforniaDanBronzeGoldSilverTrackTrack
5NebraskaBillSilverGoldBronzeGolf
6FloridaFrankBronzeSilverGoldGolfBaseball
7Baseball
8JamesDanBillFrank
9Track TrackTrack
10WrestlingWrestlingWrestling
11GolfGolfGolf
12BaseballBaseballBaseball
13
14Desired Result:
15JamesDanBillFrank
16TrackWrestlingTrackTrack
17GolfGolfWrestlingWrestling
18BaseballBaseballGolfBaseball
19
Sheet1
Cell Formulas
RangeFormula
I4:I7I4=INDEX(A9:D12,,MATCH(I2,A8:D8,0))
A8:D8,A15:D15A8=TRANSPOSE($B$3:$B$6)
A9:A12A9=TRANSPOSE(IF($C3:$F3 <> "", $C$2:$F$2, ""))
B9:B12B9=TRANSPOSE(IF($C4:$F4 <> "", $C$2:$F$2, ""))
C9:C12C9=TRANSPOSE(IF($C5:$F5 <> "", $C$2:$F$2, ""))
D9:D12D9=TRANSPOSE(IF($C6:$F6 <> "", $C$2:$F$2, ""))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
I2List=$B$3:$B$6
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Someone helped me shortly after I posted this with a more concise way to get the filtered results. That post is here. If someone is still interested in showing how to stack the data together and remove the rows, I am still interested in learning how to do that. Thanks!
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,173
Members
452,615
Latest member
bogeys2birdies

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