Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Comparing Row by Row - A-D dollar amounts to E dollar amount

With your headers in A1:D1 and values in A2:D2:

E2=MAX((A2:D2)*(A2:D2<=E2))

E1=INDEX(A1:D1,1,MATCH(F2,A2:D2,0))

E2 is an array formula, E1 is not.

Mel wrote:
Mike -
I have another request associated to the original request, if you don't
mind. I'm requested to return the column header name of the result from your
previously suggested formula.

So for example the result from your formula = $505,000. That value came
from 80% replacement column. There are 4 columns that the result could come
from.

Any ideas?

"Mel" wrote:

OMG! Thank you. You are amazing. Now I'll attempt to understand the
functions used so I know how to use for the future!!! Perfect. Again,
thankyou.

"Mike H" wrote:

Hi,

I'm guessing the range A1 - D1 isn't sorted so try this

=INDEX(A1:D1,MATCH(MIN(ABS(A1:D1-E1)),ABS(A1:E1-E1),0))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"Mel" wrote:

I thought the HLOOKUP would be sufficient. Not the case.

I have 4 dollar amounts in Row 1 (A1:D1) and a dollar amount in E1. E1 is
the main value that must be compared to A1:D1 and the result is to return a
value found in A1:D1 closest BUT not exceeding E1.

Any suggestions or thoughts would be GREAT! Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Comparing Row by Row - A-D dollar amounts to E dollar amount

Sorry, that should have been:

F2=MAX((A2:D2)*(A2:D2<=E2))

F1=INDEX(A1:D1,1,MATCH(F2,A2:D2,0))

F2 is an array formula, F1 is not.


With your "main value" in E2.


Glenn wrote:
With your headers in A1:D1 and values in A2:D2:

E2=MAX((A2:D2)*(A2:D2<=E2))

E1=INDEX(A1:D1,1,MATCH(F2,A2:D2,0))

E2 is an array formula, E1 is not.

Mel wrote:
Mike - I have another request associated to the original request, if
you don't mind. I'm requested to return the column header name of the
result from your previously suggested formula.

So for example the result from your formula = $505,000. That value
came from 80% replacement column. There are 4 columns that the result
could come from.
Any ideas?

"Mel" wrote:

OMG! Thank you. You are amazing. Now I'll attempt to understand the
functions used so I know how to use for the future!!! Perfect.
Again, thankyou.

"Mike H" wrote:

Hi,

I'm guessing the range A1 - D1 isn't sorted so try this

=INDEX(A1:D1,MATCH(MIN(ABS(A1:D1-E1)),ABS(A1:E1-E1),0))

This is an array formula which must be entered by pressing
CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put
curly brackets
'around the formula {}. You can't type these yourself. If you edit
the formula
'you must enter it again with CTRL+Shift+Enter.

Mike

"Mel" wrote:

I thought the HLOOKUP would be sufficient. Not the case.

I have 4 dollar amounts in Row 1 (A1:D1) and a dollar amount in
E1. E1 is the main value that must be compared to A1:D1 and the
result is to return a value found in A1:D1 closest BUT not
exceeding E1.

Any suggestions or thoughts would be GREAT! Thank you.

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
Total Dollar Amounts From Different Worksheet roy.okinawa Excel Worksheet Functions 5 May 5th 08 05:54 AM
column of dollar amounts don Holden Caulfield New Users to Excel 0 September 12th 06 06:02 PM
Format dollar amounts for check printing Bob Phillips Excel Discussion (Misc queries) 0 November 20th 05 12:13 PM
Format dollar amounts for check printing Norman Jones Excel Discussion (Misc queries) 0 November 20th 05 07:23 AM
dollar amounts acsnett New Users to Excel 3 August 30th 05 01:53 AM


All times are GMT +1. The time now is 10:34 AM.

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"