Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default find first and last in row of numbers

Admit I'm a bit confused by your line:
Only rule is that there must be a number
in the first position (column A).


Anyway, disregarding the above, think these 2 array formulas should return
the col numbers that you're after

To get First number position (leftmost):
Array-enter* in say, E1:
=MATCH(TRUE,A1:D1<"",0)
Copy down

To get Last number position (rightmost):
Array-enter* in say, F1:
=MAX((A1:D1<"")*COLUMN(A1:D1))
Copy down

*Press Ctrl+Shift+Enter to confirm the formula
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"anand" wrote:
I have a sequence of up to 4 numbers in a row (Column A to D). Sometimes
there are #'s in all spots, sometimes in just the first one, any combination
of a random # or blank is possible. Only rule is that there must be a number
in the first position (column A).

I need a formula that will provide the position (numerically, i.e Column B
would be 2, column C would be 3., column 4 would be 4) of the last # in the
sequence. Don't need the value, just the position.

Note that it is possible that the first and last # in the series may be the
same (i.e. the first value of 4 potential is the only value).

Can anyone advise?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 3 January 19th 06 09:52 AM
Help! How do you get excel to find the x(changes daily, marked in a cell from another formula) highest numbers in a group of numbers and sum them up? C-Man23 Excel Worksheet Functions 1 January 9th 06 01:23 PM
to find missing serial numbers in randomly generated numbers B.H. Hadi Excel Worksheet Functions 2 December 1st 05 10:56 PM
'find' somtimes can't find numbers. I folowd the 'help' instructi. Yaron Excel Worksheet Functions 2 November 30th 05 05:46 PM
Find similar numbers from two columns of numbers Dennis Andrews Excel Discussion (Misc queries) 1 November 30th 05 07:54 AM


All times are GMT +1. The time now is 05:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"