How can i join these two formulas?

F

Frustrated

I have two working formulas and i need to put them both together in one
string. Can anyone please help. i want to display the name of the top seller.
The first formula was the orginal and now i have more employees and the 2nd
formula does the same thing. All cells referrals need to stay the same.

Formula 1: =INDEX(A10:A14,MATCH(MAX(H10:H14),H10:H14,0))
Formula 2: =INDEX(P10:p16,MATCH(MAX(V10:V16),V10:V16,0))
 
J

Jacob Skaria

Try the below version

=IF(ISNA(MATCH(MAX(H10:H14,V10:V16),H10:H14,0)),INDEX(P10:p16,
MATCH(MAX(V10:V16),V10:V16,0)),INDEX(A10:A14,
MATCH(MAX(H10:H14),H10:H14,0)))
 
T

T. Valko

You can't combine them because they reference different ranges.

Either consolidate the data to a single contiguous range or...

A possibility is to download and install the free add-in Morefunc.xll from

http://xcell05.free.fr/morefunc/english/index.htm

Alternate download site:

http://www.download.com/Morefunc/3000-2077_4-10423159.html

It has a function that will allow you to combine those different ranges into
a single range.

=INDEX(ARRAY.JOIN(A10:A14,P10:p16),MATCH(MAX(ARRAY.JOIN(H10:H14,V10:V16)),ARRAY.JOIN(H10:H14,V10:V16),0))
 
P

p45cal

frustrated;593679 said:
i have two working formulas and i need to put them both together in one
string. Can anyone please help. I want to display the name of the to
seller.
The first formula was the orginal and now i have more employees and th
2nd
formula does the same thing. All cells referrals need to stay th
same.

Formula 1: =index(a10:a14,match(max(h10:h14),h10:h14,0))
formula 2: =index(p10:p16,match(max(v10:v16),v10:v16,0))

=index(a10:a14,match(max(h10:h14),h10:h14,0)) & ", "
index(p10:p16,match(max(v10:v16),v10:v16,0))
 
T

T. Valko

Improvement...

We can eliminate the ARRAY call within MAX:

=INDEX(ARRAY.JOIN(A10:A14,P10:p16),MATCH(MAX(H10:H14,V10:V16),ARRAY.JOIN(H10:H14,V10:V16),0))
 
M

minyeh

I have two working formulas and i need to put them both together in one
string. Can anyone please help. i want to display the name of the top seller.
The first formula was the orginal and now i have more employees and the 2nd
formula does the same thing. All cells referrals need to stay the same.

Formula 1: =INDEX(A10:A14,MATCH(MAX(H10:H14),H10:H14,0))
Formula 2: =INDEX(P10:p16,MATCH(MAX(V10:V16),V10:V16,0))

try this,
=IF(MAX(H10:H14)>MAX(V10:V16),INDEX(A10:A14,MATCH(MAX
(H10:H14),H10:H14,0)),INDEX(P10:p16,MATCH(MAX(V10:V16),V10:V16,0)))
 

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

Top