Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Finding last column in range

Please forgive what may appear to be a stupid question, but is there a way to
tell Excel to search in reverse (i.e., right to left) in a formula such as:

=OFFSET(C10,0,MATCH(MAX(C10:N10)+1,C10:N10,1)-1)

In other words, have cell N10 examined first, followed by cell M10, followed
by cell L10, etc.?
Thanks,
Bob

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 196
Default Finding last column in range

Hi Bob

Do you mean that you want to return the first instance of the Max
value (rather than the last)? In which case you could simply use:

=OFFSET(C10,0,MATCH(MAX(C10:N10),C10:N10,0)-1)

Have I misunderstood your requirement?

Best regards

Richard

On 5 Feb, 11:52, Bob wrote:
Please forgive what may appear to be a stupid question, but is there a way to
tell Excel to search in reverse (i.e., right to left) in a formula such as:

=OFFSET(C10,0,MATCH(MAX(C10:N10)+1,C10:N10,1)-1)

In other words, have cell N10 examined first, followed by cell M10, followed
by cell L10, etc.?
Thanks,
Bob



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Finding last column in range

Hi Richard,
You did not misunderstand my requirement. Thanks for your help!
Bob

"RichardSchollar" wrote:

Hi Bob

Do you mean that you want to return the first instance of the Max
value (rather than the last)? In which case you could simply use:

=OFFSET(C10,0,MATCH(MAX(C10:N10),C10:N10,0)-1)

Have I misunderstood your requirement?

Best regards

Richard

On 5 Feb, 11:52, Bob wrote:
Please forgive what may appear to be a stupid question, but is there a way to
tell Excel to search in reverse (i.e., right to left) in a formula such as:

=OFFSET(C10,0,MATCH(MAX(C10:N10)+1,C10:N10,1)-1)

In other words, have cell N10 examined first, followed by cell M10, followed
by cell L10, etc.?
Thanks,
Bob




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 694
Default Finding last column in range

In short no.

You will need to go to vba to meet your needs.

The otherway is to have a helper row put the column number as a number (use
column() then copy and paste special values) in there.
sort them on the column number in descending order find the value and then
sort back.

But I would use a vba function.
--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Bob" wrote:

Please forgive what may appear to be a stupid question, but is there a way to
tell Excel to search in reverse (i.e., right to left) in a formula such as:

=OFFSET(C10,0,MATCH(MAX(C10:N10)+1,C10:N10,1)-1)

In other words, have cell N10 examined first, followed by cell M10, followed
by cell L10, etc.?
Thanks,
Bob

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Finding last column in range

Martin,
Thanks for the suggestion. For security reasons, I cannot use VBA, so I
need to go with the helper row solution.
Bob


"Martin Fishlock" wrote:

In short no.

You will need to go to vba to meet your needs.

The otherway is to have a helper row put the column number as a number (use
column() then copy and paste special values) in there.
sort them on the column number in descending order find the value and then
sort back.

But I would use a vba function.
--
Hope this helps
Martin Fishlock, Bangkok, Thailand
Please do not forget to rate this reply.


"Bob" wrote:

Please forgive what may appear to be a stupid question, but is there a way to
tell Excel to search in reverse (i.e., right to left) in a formula such as:

=OFFSET(C10,0,MATCH(MAX(C10:N10)+1,C10:N10,1)-1)

In other words, have cell N10 examined first, followed by cell M10, followed
by cell L10, etc.?
Thanks,
Bob

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
Dynamic Ranges using non-contiguous cells and dependent on a cell value Carlo Paoloni Excel Worksheet Functions 2 November 29th 06 07:29 PM
Non updatable Unique Random Number Ian Excel Worksheet Functions 30 September 28th 06 08:19 PM
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Positioning Numeric Values Resulting from 6 Column Array Formula Sam via OfficeKB.com Excel Worksheet Functions 2 January 5th 06 02:03 AM
Finding a range from a column using VBA. Mike Echo Excel Worksheet Functions 3 May 3rd 05 08:28 AM


All times are GMT +1. The time now is 02:18 AM.

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

About Us

"It's about Microsoft Excel"