MiguelWallis
New Member
- Joined
- May 29, 2010
- Messages
- 3
Hi,
I have an error in the following formula:
={CHAR(MODE(CODE("M2:"&ADDRESS(ROW(M2),COLUMN(AF2)-COUNTBLANK(M2:AF2),4))))}
The problem I'm trying to address is finding the most popular letter in a row of letters. Each cell in the row contains only one letter, but in some cases the letter might be blank. The formula above is an attempt to address this by finding the last non-blank value, as the CODE function accepts values between 1 and 255 and doesn't appear to handle blank values.
The formula is also an array formula (entered by pressing CTRL-SHIFT-ENTER); if I replace the part within the CODE element with a cell range reference, the formula appears to work. However, as the length of the word may change, I need some way of adjusting which cells are referenced.
Hopefully someone can help with this? If you need any further information let me know.
Thanks,
Miguel
I have an error in the following formula:
={CHAR(MODE(CODE("M2:"&ADDRESS(ROW(M2),COLUMN(AF2)-COUNTBLANK(M2:AF2),4))))}
The problem I'm trying to address is finding the most popular letter in a row of letters. Each cell in the row contains only one letter, but in some cases the letter might be blank. The formula above is an attempt to address this by finding the last non-blank value, as the CODE function accepts values between 1 and 255 and doesn't appear to handle blank values.
The formula is also an array formula (entered by pressing CTRL-SHIFT-ENTER); if I replace the part within the CODE element with a cell range reference, the formula appears to work. However, as the length of the word may change, I need some way of adjusting which cells are referenced.
Hopefully someone can help with this? If you need any further information let me know.
Thanks,
Miguel