• 100% Satisfaction Guarantee

John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9666
Experience:  Bachelor of Science - Engineering Consultant
53785
Type Your Microsoft Office Question Here...
John D is online now

# Need help with a =mid function in Excel Here is the function

### Resolved Question:

Need help with a =mid function in Excel

Here is the function that I am working on:

{=MATCH(TRUE,ISNUMBER(1*MID(H3,ROW(\$1:\$12),1)),0)}

The problem that I am having is that right now the ROW(\$1:\$12) is fixed - but I need the second number (in the above example \$12) to be copied from a cell.

When I try to do this, the formula is rejected by Excel.

For instance, if the number I need for the Row is in cell F3, I need the formula to pull the number from that cell, as the number of rows is a function of the number of characters in the string

so what I am trying is:

{=MATCH(TRUE,ISNUMBER(1*MID(H3,ROW(\$1:\$(=f3),1)),0)}

where \$12 is replaced by \$(=f3).

Make sense?

I am using this function in order to extract the numbers only from a string.

In the above example, this is the string, which has 12 characters:

Other-/20621

So I need it to return = 8

but the next string could be 15 characters and so on.........

the string will always end with numbers - just do not know how many - could be between 4 - 7

Can you help - is there another function to do this?

PS: What I originally started with was a URL from ebay and what I am trying to pull from the URL is the category number - here is original URL:

http://www.ebay.com/sch/Other-/20621/i.html
Submitted: 4 years ago.
Category: Microsoft Office
Expert:  John D replied 4 years ago.

Hi,

This array formula uses the value in F3 as the last row in the range

=MATCH(TRUE,ISNUMBER(1*MID(H3,ROW(INDIRECT("\$1:"&F3)),1)),0)

Let me know if you have any questions, and thank you for clicking Accept if you are satisfied with the solution

John D, Bachelor's Degree
Category: Microsoft Office
Satisfied Customers: 9666
Experience: Bachelor of Science - Engineering Consultant

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

### What Customers are Saying:

• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Previous | Next >
• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
• This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
• Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
• I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
• Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
• Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland

• ### jstinehelfer

#### Satisfied Customers:

36
A+ Comptia Certified computer repair
< Last | Next >

### jstinehelfer

#### Satisfied Customers:

36
A+ Comptia Certified computer repair

### JasonJames122

#### Satisfied Customers:

0
I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

### Jess M.

#### Satisfied Customers:

481
Computer Software Specialist for more than 10 years

### The-PC-Guy

#### Satisfied Customers:

450
20 years experience providing remote computer support

### James K.

#### Satisfied Customers:

260
Technical Director of IT Company

### IT Miro

#### Satisfied Customers:

147
Bachelor's Degree in Information Technology, Microsoft Certified Professional