INDEX Formula that only Indexes cells with a specific text String

althorian

New Member
Joined
Oct 20, 2016
Messages
5
Hi,

I have not been able to solve. I need a formula that will convert a column of data into a new column of data minus some repeat lines of garbage text. There are three distinct TextStrings and each repeats after 3 rows and occasionally there is a line or two of garbage.

Example data is in Column H and Result I want is in Column I but I am not sure how to get there.


COLUMN HCOLUMN I
1TextString1TextString1
2TextString2TextString2
3TextString3TextString3
4TextString1TextString1
5TextString2TextString2
6TextString3TextString3
7TextString1TextString1
8TextString2TextString2
9TextString3TextString3
10GarbageLine1TextString1
11GarbageLine2TextString2
12TextString1TextString3
13TextString2
14TextString3

<tbody>
</tbody>

Thanks
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
See if this works for you.
The IFERROR function is only in Excel ver, 2010 and later.
This is an array formula and must be entered with CTRL-SHIFT-ENTER (command-return on MAC).
Excel Workbook
HI
1TextString1TextString1
2TextString2TextString2
3TextString3TextString3
4TextString1TextString1
5TextString2TextString2
6TextString3TextString3
7TextString1TextString1
8TextString2TextString2
9TextString3TextString3
10GarbageLine1TextString1
11GarbageLine2TextString2
12TextString1TextString3
13TextString2*
14TextString3*
Sheet
 
Upvote 0

Forum statistics

Threads
1,215,273
Messages
6,123,984
Members
449,137
Latest member
abdahsankhan

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