marilyn123
New Member
- Joined
- Aug 15, 2016
- Messages
- 15
Hi,
I hope somebody is able to help with the below. I've been given a report with a bunch of horizontal data (changing the entire report structure is not really an option at this point). In the column where it says "Language 1" I need a formula that can search the first row of all the columns for the word "language 1" and sum a certain row value, similar to what a sumif does. So in this example it needs to sum up the two values under 'Language 1 (only)' and 'Language 1 Hispanic', etc. There will be a lot of other languages in different columns but of course it would have been too big to show for here.
So for example the first row of the data under language 1 is 0 (0+0) and the second is 1 (1+0). I came up with a horizontal lookup that will bring the first value it finds, but can't seem to figure out something that will find all of the values sum all of it together. =HLOOKUP("*" & F2 & "*",$G$2:$U$8,ROW()-1,FALSE). The first part of the formula is so that it will agree with anything that has the word "Arabic", the Row()-1 is so it will bring back the appropriate row value.
Any advice on how to get these values to sum? Much appreciated...
I hope this all makes sense!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]
[TABLE="width: 454"]
<tbody>[TR]
[TD="class: xl66, width: 65, bgcolor: transparent"]Program
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]Location
[/TD]
[TD="class: xl66, width: 65, bgcolor: transparent"]Total
[/TD]
[TD="class: xl67, width: 65, bgcolor: yellow"]Language 1
[/TD]
[TD="class: xl67, width: 65, bgcolor: yellow"]Total %
[/TD]
[TD="class: xl66, width: 65, bgcolor: transparent"]Language 1(only)
[/TD]
[TD="class: xl66, width: 80, bgcolor: transparent"]%
[/TD]
[TD="class: xl66, width: 65, bgcolor: transparent"]Language 1, Hispanic
[/TD]
[TD="class: xl66, width: 69, bgcolor: transparent"]%
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]A
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]68
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]0
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]0.0%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]0.00 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]B
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]4
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]1
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]25.0%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]25.00 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]C
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]135
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]1
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]0.7%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]0.74 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]D
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]118
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]0
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]0.0%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]0.00 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]E
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]125
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]3
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]2.4%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]2
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]1.60 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]F
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]705
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]0
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]0.0%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]0.00 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I hope somebody is able to help with the below. I've been given a report with a bunch of horizontal data (changing the entire report structure is not really an option at this point). In the column where it says "Language 1" I need a formula that can search the first row of all the columns for the word "language 1" and sum a certain row value, similar to what a sumif does. So in this example it needs to sum up the two values under 'Language 1 (only)' and 'Language 1 Hispanic', etc. There will be a lot of other languages in different columns but of course it would have been too big to show for here.
So for example the first row of the data under language 1 is 0 (0+0) and the second is 1 (1+0). I came up with a horizontal lookup that will bring the first value it finds, but can't seem to figure out something that will find all of the values sum all of it together. =HLOOKUP("*" & F2 & "*",$G$2:$U$8,ROW()-1,FALSE). The first part of the formula is so that it will agree with anything that has the word "Arabic", the Row()-1 is so it will bring back the appropriate row value.
Any advice on how to get these values to sum? Much appreciated...
I hope this all makes sense!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]
[TABLE="width: 454"]
<tbody>[TR]
[TD="class: xl66, width: 65, bgcolor: transparent"]Program
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]Location
[/TD]
[TD="class: xl66, width: 65, bgcolor: transparent"]Total
[/TD]
[TD="class: xl67, width: 65, bgcolor: yellow"]Language 1
[/TD]
[TD="class: xl67, width: 65, bgcolor: yellow"]Total %
[/TD]
[TD="class: xl66, width: 65, bgcolor: transparent"]Language 1(only)
[/TD]
[TD="class: xl66, width: 80, bgcolor: transparent"]%
[/TD]
[TD="class: xl66, width: 65, bgcolor: transparent"]Language 1, Hispanic
[/TD]
[TD="class: xl66, width: 69, bgcolor: transparent"]%
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]A
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]68
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]0
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]0.0%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]0.00 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]B
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]4
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]1
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]25.0%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]25.00 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]C
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]135
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]1
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]0.7%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]0.74 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]D
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]118
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]0
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]0.0%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]0.00 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]E
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]125
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]3
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]2.4%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]2
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]1.60 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
[TR]
[TD="class: xl68, width: 65, bgcolor: transparent, align: right"]1
[/TD]
[TD="class: xl69, width: 64, bgcolor: transparent"]F
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]705
[/TD]
[TD="class: xl71, width: 65, bgcolor: yellow, align: right"]0
[/TD]
[TD="class: xl72, width: 65, bgcolor: yellow, align: right"]0.0%
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 80, bgcolor: transparent, align: right"]0.00 %
[/TD]
[TD="class: xl70, width: 65, bgcolor: transparent, align: right"]0
[/TD]
[TD="class: xl73, width: 69, bgcolor: transparent, align: right"]0.00 %
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]