millawitch
New Member
- Joined
- Jun 20, 2012
- Messages
- 14
- Office Version
- 365
- Platform
- Windows
Hi all,
I'm new to the MrExcel forum and this is my first post.
I have a "RANKIF" formula using SUMPRODUCT:
=SUMPRODUCT(--($B4=$B$4:$B$100),--($F4<$F$4:$F$100))+1
which works fine. At the moment "F" is the last column, but the table will expand to the right so the last column reference will always change. In other words, $F4<$F$4:$F$100 can change to $G4<$G$4:$G$100, $H4<$H$4:$H$100, etc and I want the formula to always look for data in the last column.
How do I make it work in this scenario?
Thanks!
I'm new to the MrExcel forum and this is my first post.
I have a "RANKIF" formula using SUMPRODUCT:
=SUMPRODUCT(--($B4=$B$4:$B$100),--($F4<$F$4:$F$100))+1
which works fine. At the moment "F" is the last column, but the table will expand to the right so the last column reference will always change. In other words, $F4<$F$4:$F$100 can change to $G4<$G$4:$G$100, $H4<$H$4:$H$100, etc and I want the formula to always look for data in the last column.
How do I make it work in this scenario?
Thanks!