Locationg the first number in a row

  • Thread starter Thread starter Anto111
  • Start date Start date
A

Anto111

Hi guys,

I have a collection of weekly data organised into rows. Where I have no data
for that week i simply enter "-". What I need is a formula to locate the
first number that occurs in a designated row.

For example if my data is:

- - - 8 - 9 9 - 10

I would need the formula to simply pick up the number 8.

Many thanks in advance for your help,

Kind regards,

Ant
 
=INDEX(A1:IV1,MATCH(TRUE,ISNUMBER(A1:IV1),0))

entered as an array formula using CNTRL-SHFT-ENTER rather than just the
ENTER key.
 
Use Shft-Cntl - enter to get {}. The formula creates an arrray of true and
falses to identifies where the number are. Match looks for the first number
which is a TRUE and then uses Index to get the number.


=INDEX(A1:I1,1,MATCH(TRUE,ISNUMBER(A1:I1),FALSE))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top