Find the row of a cell with exact first word

XcelLearner

Board Regular
Joined
Feb 6, 2016
Messages
52
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have an array with 18 rows, that I want a formula so that it looks in the array and count the row number of the cell that contains its three first letters as "End" as 18?

excel-question-png.48216

This is a part of a bigger problem in which I use HLOOKUP and MATCH to count the number of outstanding shares in a given year. The formula MATCH("Ending # of shares in circulation",A:A,0) gives the number 18 perfectly, but the thing is while the first three letters are always "End", the whole cell might come in "Ending outstanding shares", or "Ending # of shares in circulation" or other names. So the formula MATCH("Ending # of shares in circulation",A:A,0) does not always work, so I need something could recognize the first three letters as "End", and count its row position.

Thanks.
 

Attachments

  • Excel Question.png
    Excel Question.png
    20.7 KB · Views: 41

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Just use a wildcard
Excel Formula:
=MATCH("End*",A:A,0)

As you have office 365, you should have access to XMATCH and XLOOKUP which have more options when it comes to wildcards and may work better in place of your HLOOKUP formula.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,646
Messages
6,126,004
Members
449,279
Latest member
Faraz5023

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