Rolling highest amount nested IF

Closed
frustrated - 27 Oct 2009 à 16:29
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 28 Oct 2009 à 20:52
Hello,

This should be simple, I have 5 columns with weekly cash $ . In column A I wish to pull the greatest number durring the month as the are populated?

Rolling wk 1 wk2 wk3 wk4 wk5
A B C D E F
? $5 $10 $15 $20 $25

I know this is a nested IF but can't et it right?

1Frustred

2 responses

venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 811
27 Oct 2009 à 22:17
suppose thse are in row no. 2

in A2 type this formula
=max(B2:F2)


is this what you want.

what is the nextedif you want.
That would be it except the $'s are not next to each other, they are separated by another column with a target $.
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 811
28 Oct 2009 à 20:52
what is the version of excel you are having.
if you type in any cell $(space)12 it automatically is entered as $12(no space). It is now a number
but if you type with a single apostrophe (') and type $(space)12 then it will be entered as you have typed but now it is a text or string. you cannot get maximum.
The same thing will happen if the cells are formatted as text and the entry is made as $(space)12.

so the entries in your sheet are strings and not numbers.
now how to solve this or convert these into numbers(or currency numbers) so that max formula can be used

A)if the cells are formatted as text then
1.highlight cells
2.format them as "general"
3. hit F2
4.hit control+shift+enter
all these cells will become numbers and you can do my formula

B) if it is entered with single apostrophe
in my version (windows xp excel 2002) if you highlight this cells on the left there will be an error icon. You click it and choose convert to numbers. Then they would become numbers.

If both these fail you have to have a macro.

experiment this with a small database.