Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MATCH an unknown number | Excel Discussion (Misc queries) | |||
Unknown number format | Excel Worksheet Functions | |||
Formula's dealing with unknown number of rows | Excel Discussion (Misc queries) | |||
Dividing by unknown to get a number | Excel Worksheet Functions | |||
How to Calculate an unknown number? | Excel Worksheet Functions |