Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dim dim is offline
external usenet poster
 
Posts: 123
Default Subtract a max value from a row then copy that columns title?

Hi,

I've been trying this with variations of the =MAX function but cant get it
to work... :-(

I have a row of text entries as column titles in every second column, e.g:
A1, C1, E1, G1 etc

Below those text titles, I have numeric values. e.g: A2, C2, E2, G2 etc

I want to get the highest number from row 2, and then display the column
title from that row......

.......any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default Subtract a max value from a row then copy that columns title?

Hi

Try
=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2))

--
Regards
Roger Govier



"dim" wrote in message
...
Hi,

I've been trying this with variations of the =MAX function but cant get it
to work... :-(

I have a row of text entries as column titles in every second column, e.g:
A1, C1, E1, G1 etc

Below those text titles, I have numeric values. e.g: A2, C2, E2, G2 etc

I want to get the highest number from row 2, and then display the column
title from that row......

......any ideas?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Subtract a max value from a row then copy that columns title?

In case they are not ordered

=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2,0))



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Roger Govier" <rogerattechnology4NOSPAMu.co.uk wrote in message
...
Hi

Try
=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2))

--
Regards
Roger Govier



"dim" wrote in message
...
Hi,

I've been trying this with variations of the =MAX function but cant get
it
to work... :-(

I have a row of text entries as column titles in every second column,
e.g:
A1, C1, E1, G1 etc

Below those text titles, I have numeric values. e.g: A2, C2, E2, G2 etc

I want to get the highest number from row 2, and then display the column
title from that row......

......any ideas?






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dim dim is offline
external usenet poster
 
Posts: 123
Default Subtract a max value from a row then copy that columns title?

That.....kinda.....worked! :-)

Thanks folks. I got Rogers formula working fine, but the values are not in
order, they skip every second column, so I tried adapting Bob's formula to
get that working and typed in this:

=INDEX(B24,D24,F24,MATCH(MAX(B25,D25,F25),B24,D24, F24,0))

Unfortunately it doesnt work.....sorry for throwing questions at you all but
your help is very much appreciated.

Any ideas how to get this working?

"Bob Phillips" wrote:

In case they are not ordered

=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2,0))



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Roger Govier" <rogerattechnology4NOSPAMu.co.uk wrote in message
...
Hi

Try
=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2))

--
Regards
Roger Govier



"dim" wrote in message
...
Hi,

I've been trying this with variations of the =MAX function but cant get
it
to work... :-(

I have a row of text entries as column titles in every second column,
e.g:
A1, C1, E1, G1 etc

Below those text titles, I have numeric values. e.g: A2, C2, E2, G2 etc

I want to get the highest number from row 2, and then display the column
title from that row......

......any ideas?







  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Subtract a max value from a row then copy that columns title?

Try this:

=INDEX(B24:F24,MATCH(MAX(B25,D25,F25),IF(MOD(COLUM N(B25:F25),2)=0,B25:F25),0))

ctrl+shift+enter, not just enter


"dim" wrote:

That.....kinda.....worked! :-)

Thanks folks. I got Rogers formula working fine, but the values are not in
order, they skip every second column, so I tried adapting Bob's formula to
get that working and typed in this:

=INDEX(B24,D24,F24,MATCH(MAX(B25,D25,F25),B24,D24, F24,0))

Unfortunately it doesnt work.....sorry for throwing questions at you all but
your help is very much appreciated.

Any ideas how to get this working?

"Bob Phillips" wrote:

In case they are not ordered

=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2,0))



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Roger Govier" <rogerattechnology4NOSPAMu.co.uk wrote in message
...
Hi

Try
=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2))

--
Regards
Roger Govier



"dim" wrote in message
...
Hi,

I've been trying this with variations of the =MAX function but cant get
it
to work... :-(

I have a row of text entries as column titles in every second column,
e.g:
A1, C1, E1, G1 etc

Below those text titles, I have numeric values. e.g: A2, C2, E2, G2 etc

I want to get the highest number from row 2, and then display the column
title from that row......

......any ideas?









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Subtract a max value from a row then copy that columns title?

Try this *array* formula:

=INDEX(B24:F24,MATCH(MAX((MOD(COLUMN(B25:F25),2)=0 )*(B25:F25)),B25:F25,0))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, CSE *must* be used when
revising the formula.

If/when you need to extend the range, simply revise all the reference to
Column F to Column "whatever".
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"dim" wrote in message
...
That.....kinda.....worked! :-)

Thanks folks. I got Rogers formula working fine, but the values are not in
order, they skip every second column, so I tried adapting Bob's formula to
get that working and typed in this:

=INDEX(B24,D24,F24,MATCH(MAX(B25,D25,F25),B24,D24, F24,0))

Unfortunately it doesnt work.....sorry for throwing questions at you all but
your help is very much appreciated.

Any ideas how to get this working?

"Bob Phillips" wrote:

In case they are not ordered

=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2,0))



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Roger Govier" <rogerattechnology4NOSPAMu.co.uk wrote in message
...
Hi

Try
=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2))

--
Regards
Roger Govier



"dim" wrote in message
...
Hi,

I've been trying this with variations of the =MAX function but cant get
it
to work... :-(

I have a row of text entries as column titles in every second column,
e.g:
A1, C1, E1, G1 etc

Below those text titles, I have numeric values. e.g: A2, C2, E2, G2 etc

I want to get the highest number from row 2, and then display the
column
title from that row......

......any ideas?









  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dim dim is offline
external usenet poster
 
Posts: 123
Default Subtract a max value from a row then copy that columns title?

Thanks folks, that seems to be working now. I really have to get my head
around this whole Ctrl-Sft-Entr thing....when to use it, when not to use
it.....what makes it different and work...etc

"RagDyeR" wrote:

Try this *array* formula:

=INDEX(B24:F24,MATCH(MAX((MOD(COLUMN(B25:F25),2)=0 )*(B25:F25)),B25:F25,0))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, CSE *must* be used when
revising the formula.

If/when you need to extend the range, simply revise all the reference to
Column F to Column "whatever".
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"dim" wrote in message
...
That.....kinda.....worked! :-)

Thanks folks. I got Rogers formula working fine, but the values are not in
order, they skip every second column, so I tried adapting Bob's formula to
get that working and typed in this:

=INDEX(B24,D24,F24,MATCH(MAX(B25,D25,F25),B24,D24, F24,0))

Unfortunately it doesnt work.....sorry for throwing questions at you all but
your help is very much appreciated.

Any ideas how to get this working?

"Bob Phillips" wrote:

In case they are not ordered

=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2,0))



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Roger Govier" <rogerattechnology4NOSPAMu.co.uk wrote in message
...
Hi

Try
=INDEX(A1:G1,MATCH(MAX(A2:G2),A2:G2))

--
Regards
Roger Govier



"dim" wrote in message
...
Hi,

I've been trying this with variations of the =MAX function but cant get
it
to work... :-(

I have a row of text entries as column titles in every second column,
e.g:
A1, C1, E1, G1 etc

Below those text titles, I have numeric values. e.g: A2, C2, E2, G2 etc

I want to get the highest number from row 2, and then display the
column
title from that row......

......any ideas?










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
hOW DO i SUBTRACT COLUMNS IN EXCEL? Subtract columns Excel Discussion (Misc queries) 1 March 29th 06 11:35 PM
hOW DO i SUBTRACT COLUMNS IN EXCEL? Toppers Excel Discussion (Misc queries) 0 March 26th 06 11:50 PM
How do I subtract two columns from the same total? Lollycat Excel Discussion (Misc queries) 7 August 26th 05 04:53 PM
subtract amounts from different columns? Paula Excel Discussion (Misc queries) 2 January 22nd 05 06:19 PM
Pivot Table Creating New Columns that Subtract Two Existing Columns den4673 Excel Discussion (Misc queries) 3 December 17th 04 01:31 PM


All times are GMT +1. The time now is 06:07 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"