Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default SUM IF - What if column number is unknown

Hi

I am using formula,

{=SUM(IF($B$66:$B$200=A28,$D$66:$D$200))}

But what if I don't know the coulmn number, i.e. 'D' In my source file
values which I want to retriev are not always in D column, it could b E or F
and evry time I don't want to update my formula...

Coloum Header is always same but not column number. Is ther any way to
retreive column number by using column header and then use that in above
array formula?

Please advise

-- Milind
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUM IF - What if column number is unknown

One way...

=SUMIF(B66:B200,A28,INDEX(C66:G200,,MATCH("x",C65: G65,0)))

Where "x" is the column header and the header is in row 65.

--
Biff
Microsoft Excel MVP


"Milind Keer" wrote in message
...
Hi

I am using formula,

{=SUM(IF($B$66:$B$200=A28,$D$66:$D$200))}

But what if I don't know the coulmn number, i.e. 'D' In my source file
values which I want to retriev are not always in D column, it could b E or
F
and evry time I don't want to update my formula...

Coloum Header is always same but not column number. Is ther any way to
retreive column number by using column header and then use that in above
array formula?

Please advise

-- Milind



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default SUM IF - What if column number is unknown

Hey Valko

Sorry for delayed response. Just wanted to thank you, it worked...

Thanks!!
Milind



"T. Valko" wrote:

One way...

=SUMIF(B66:B200,A28,INDEX(C66:G200,,MATCH("x",C65: G65,0)))

Where "x" is the column header and the header is in row 65.

--
Biff
Microsoft Excel MVP


"Milind Keer" wrote in message
...
Hi

I am using formula,

{=SUM(IF($B$66:$B$200=A28,$D$66:$D$200))}

But what if I don't know the coulmn number, i.e. 'D' In my source file
values which I want to retriev are not always in D column, it could b E or
F
and evry time I don't want to update my formula...

Coloum Header is always same but not column number. Is ther any way to
retreive column number by using column header and then use that in above
array formula?

Please advise

-- Milind




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUM IF - What if column number is unknown

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Milind Keer" wrote in message
...
Hey Valko

Sorry for delayed response. Just wanted to thank you, it worked...

Thanks!!
Milind



"T. Valko" wrote:

One way...

=SUMIF(B66:B200,A28,INDEX(C66:G200,,MATCH("x",C65: G65,0)))

Where "x" is the column header and the header is in row 65.

--
Biff
Microsoft Excel MVP


"Milind Keer" wrote in message
...
Hi

I am using formula,

{=SUM(IF($B$66:$B$200=A28,$D$66:$D$200))}

But what if I don't know the coulmn number, i.e. 'D' In my source file
values which I want to retriev are not always in D column, it could b E
or
F
and evry time I don't want to update my formula...

Coloum Header is always same but not column number. Is ther any way to
retreive column number by using column header and then use that in
above
array formula?

Please advise

-- Milind






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
MATCH an unknown number ut_libet Excel Discussion (Misc queries) 3 June 10th 08 09:20 PM
Unknown number format Don Excel Worksheet Functions 1 September 20th 06 06:17 PM
Formula's dealing with unknown number of rows OfficeNDN Excel Discussion (Misc queries) 2 September 11th 06 04:11 PM
Dividing by unknown to get a number bundyloco Excel Worksheet Functions 5 August 14th 05 03:44 PM
How to Calculate an unknown number? Beau Excel Worksheet Functions 1 May 28th 05 01:20 AM


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