Eliminating Columns and Rows

Philly2034

New Member
Joined
Jun 10, 2014
Messages
4
I have a spreadsheet. Latitudes are across row 1. Latitudes are across row A. The lower case letters are values of some function. I would like to delete all the columns and rows in the spreadsheet except for those that are closest to .00, .25,.50, .75.
For example, this
[TABLE="width: 624"]
<colgroup><col><col width="*"><col width="*"><col width="*"><col width="*"><col width="*"></colgroup><tbody>[TR]
[TD="bgcolor: #efefef"][/TD]
[TD="bgcolor: #efefef"]A
[/TD]
[TD="bgcolor: #efefef"]B
[/TD]
[TD="bgcolor: #efefef"]C
[/TD]
[TD="bgcolor: #efefef"]D
[/TD]
[TD="bgcolor: #efefef"]E
[/TD]
[/TR]
[TR]
[TD="bgcolor: #efefef"]1
[/TD]
[TD][/TD]
[TD]-91.5125
[/TD]
[TD]-91.5042
[/TD]
[TD]-91.4959
[/TD]
[TD]-91.4875
[/TD]
[/TR]
[TR]
[TD="bgcolor: #efefef"]2
[/TD]
[TD]42.52124
[/TD]
[TD]a
[/TD]
[TD]b
[/TD]
[TD]c
[/TD]
[TD]d
[/TD]
[/TR]
[TR]
[TD="bgcolor: #efefef"]3
[/TD]
[TD]42.5129
[/TD]
[TD]e
[/TD]
[TD]f
[/TD]
[TD]g
[/TD]
[TD]h
[/TD]
[/TR]
[TR]
[TD="bgcolor: #efefef"]4
[/TD]
[TD]42.50457
[/TD]
[TD]i
[/TD]
[TD]j
[/TD]
[TD]k
[/TD]
[TD]l
[/TD]
[/TR]
[TR]
[TD="bgcolor: #efefef"]5
[/TD]
[TD]42.49624
[/TD]
[TD]m
[/TD]
[TD]n
[/TD]
[TD]o
[/TD]
[TD]p
[/TD]
[/TR]
</tbody>[/TABLE]






would turn out to this...
[TABLE="width: 624"]
<colgroup><col><col width="*"><col width="*"></colgroup><tbody>[TR]
[TD="bgcolor: #efefef"][/TD]
[TD="bgcolor: #efefef"][/TD]
[TD="bgcolor: #efefef"][/TD]
[/TR]
[TR]
[TD="bgcolor: #efefef"][/TD]
[TD][/TD]
[TD]-91.4959
[/TD]
[/TR]
[TR]
[TD="bgcolor: #efefef"][/TD]
[TD]42.49624
[/TD]
[TD]o
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Given in A1:


Excel 2010
ABCDE
1-91.5125-91.5042-91.496-91.4875
242.52124abcd
342.5129efgh
442.50457ijkl
542.4962mnop
6
7
8-91.496
942.4962
10o
Sheet3


Formula in A10 is =VLOOKUP(A9,A2:E5,MATCH(A8,A1:E1,0),0).
Would that work for you?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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