77highland
New Member
- Joined
- Nov 11, 2013
- Messages
- 7
Hi All,
Need help with 2 formulas, kind of related as both need a HLOOKUP start range and 'last blank cell in row' as end range (i believe), any help will be greatly appreciated.......
In column M (M2:M5) i need a formula along the lines of......
=IF(L2="Low",COUNTIF(HLOOKUP(K2,A1:J5,2):'last blank cell in row',"<600"),IF(L2="Low",COUNTIF(HLOOKUP(K2,A1:J5,2):'last blank cell in row',">600"),IF(L2="","No")))
In column O (O2:O5) i need a formula along the lines of......
=AVERAGE(HLOOKUP(N2,A1:J5,2):'last blank cell in row')
But please note that the date range continuously expands via inserting columns (between columns J and K in the example below).
[TABLE="width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]01/05/18[/TD]
[TD]02/05/18[/TD]
[TD]03/05/18[/TD]
[TD]04/05/18[/TD]
[TD]05/05/18[/TD]
[TD]06/05/18[/TD]
[TD]07/05/18[/TD]
[TD]08/05/18[/TD]
[TD]09/05/18[/TD]
[TD]10/05/18[/TD]
[TD]Priority Tracking Start Date[/TD]
[TD]Priority[/TD]
[TD]Priority % Hit Rate[/TD]
[TD]OH Completion Date[/TD]
[TD]Average Mileage since OH[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]300[/TD]
[TD]400[/TD]
[TD]500[/TD]
[TD]500[/TD]
[TD]700[/TD]
[TD]200[/TD]
[TD]400[/TD]
[TD]500[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/05/18[/TD]
[TD][/TD]
[TD][/TD]
[TD]02/05/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]400[/TD]
[TD]200[/TD]
[TD]800[/TD]
[TD]900[/TD]
[TD]500[/TD]
[TD]600[/TD]
[TD]1000[/TD]
[TD]400[/TD]
[TD][/TD]
[TD][/TD]
[TD]02/05/18[/TD]
[TD]High[/TD]
[TD][/TD]
[TD]01/05/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]200[/TD]
[TD]300[/TD]
[TD]700[/TD]
[TD]800[/TD]
[TD]700[/TD]
[TD]500[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]04/05/18[/TD]
[TD]Low[/TD]
[TD][/TD]
[TD]03/05/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]400[/TD]
[TD]800[/TD]
[TD]1000[/TD]
[TD]200[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]300[/TD]
[TD]400[/TD]
[TD][/TD]
[TD][/TD]
[TD]04/05/18[/TD]
[TD]High[/TD]
[TD][/TD]
[TD]02/05/18[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Need help with 2 formulas, kind of related as both need a HLOOKUP start range and 'last blank cell in row' as end range (i believe), any help will be greatly appreciated.......
In column M (M2:M5) i need a formula along the lines of......
=IF(L2="Low",COUNTIF(HLOOKUP(K2,A1:J5,2):'last blank cell in row',"<600"),IF(L2="Low",COUNTIF(HLOOKUP(K2,A1:J5,2):'last blank cell in row',">600"),IF(L2="","No")))
In column O (O2:O5) i need a formula along the lines of......
=AVERAGE(HLOOKUP(N2,A1:J5,2):'last blank cell in row')
But please note that the date range continuously expands via inserting columns (between columns J and K in the example below).
[TABLE="width: 100"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]01/05/18[/TD]
[TD]02/05/18[/TD]
[TD]03/05/18[/TD]
[TD]04/05/18[/TD]
[TD]05/05/18[/TD]
[TD]06/05/18[/TD]
[TD]07/05/18[/TD]
[TD]08/05/18[/TD]
[TD]09/05/18[/TD]
[TD]10/05/18[/TD]
[TD]Priority Tracking Start Date[/TD]
[TD]Priority[/TD]
[TD]Priority % Hit Rate[/TD]
[TD]OH Completion Date[/TD]
[TD]Average Mileage since OH[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]300[/TD]
[TD]400[/TD]
[TD]500[/TD]
[TD]500[/TD]
[TD]700[/TD]
[TD]200[/TD]
[TD]400[/TD]
[TD]500[/TD]
[TD][/TD]
[TD][/TD]
[TD]01/05/18[/TD]
[TD][/TD]
[TD][/TD]
[TD]02/05/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]400[/TD]
[TD]200[/TD]
[TD]800[/TD]
[TD]900[/TD]
[TD]500[/TD]
[TD]600[/TD]
[TD]1000[/TD]
[TD]400[/TD]
[TD][/TD]
[TD][/TD]
[TD]02/05/18[/TD]
[TD]High[/TD]
[TD][/TD]
[TD]01/05/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]200[/TD]
[TD]300[/TD]
[TD]700[/TD]
[TD]800[/TD]
[TD]700[/TD]
[TD]500[/TD]
[TD]100[/TD]
[TD]0[/TD]
[TD][/TD]
[TD][/TD]
[TD]04/05/18[/TD]
[TD]Low[/TD]
[TD][/TD]
[TD]03/05/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]400[/TD]
[TD]800[/TD]
[TD]1000[/TD]
[TD]200[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]300[/TD]
[TD]400[/TD]
[TD][/TD]
[TD][/TD]
[TD]04/05/18[/TD]
[TD]High[/TD]
[TD][/TD]
[TD]02/05/18[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]