Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I want to input a formula to a cell that contains 10 arguments - I realise I
cannot use the IF function for more than 7 arguments. So what formula would I use to find: If A1 is blank, return a "1". If A1 contains a "1", return a "2", if it contains a "2", return a "3" etc up to and including a "9"? (i.e. 10 arguments in all. Can it be done? Many thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
=SUM(A1)+1 -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) "Zakynthos" wrote in message ... I want to input a formula to a cell that contains 10 arguments - I realise I cannot use the IF function for more than 7 arguments. So what formula would I use to find: If A1 is blank, return a "1". If A1 contains a "1", return a "2", if it contains a "2", return a "3" etc up to and including a "9"? (i.e. 10 arguments in all. Can it be done? Many thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Arvi,
Many thanks. My fault, though, that I did not express the problem clearly enough: I'll try again. I want to input a formula in all 81 cells in a 9 x 9 grid such that: if any cell is blank, input a 1,2,3,4,5,6,7,8 or 9 depending on whether all the other numbers in that row or column add up to 45 minus the number to be input (it sort of has something to do with Sudoku) "Arvi Laanemets" wrote: Hi =SUM(A1)+1 -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) "Zakynthos" wrote in message ... I want to input a formula to a cell that contains 10 arguments - I realise I cannot use the IF function for more than 7 arguments. So what formula would I use to find: If A1 is blank, return a "1". If A1 contains a "1", return a "2", if it contains a "2", return a "3" etc up to and including a "9"? (i.e. 10 arguments in all. Can it be done? Many thanks |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
you can use the CHOOSE function. In your example it will look like this.
=CHOOSE(A1+1,1,2,3,4,5,6,7,8,9,10) "Zakynthos" wrote: I want to input a formula to a cell that contains 10 arguments - I realise I cannot use the IF function for more than 7 arguments. So what formula would I use to find: If A1 is blank, return a "1". If A1 contains a "1", return a "2", if it contains a "2", return a "3" etc up to and including a "9"? (i.e. 10 arguments in all. Can it be done? Many thanks |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sloth,
Many thanks, I'm not sure if you were referring to my original (badly phrased) question or the second, above: 'I want to input a formula in all 81 cells in a 9 x 9 grid such that: if any cell is blank, input a 1,2,3,4,5,6,7,8 or 9 depending on whether all the other numbers in that row or column add up to 45 minus the number to be input. I assume it was the first question, but if the second, as above, then how would you combine a CHOOSE function with an AND to reference the sum of the rows and columns? If not CHOOSE, could LOOKUP (or nested IF statemments?) be used and if so how to solve the problem? Many thanks "Sloth" wrote: you can use the CHOOSE function. In your example it will look like this. =CHOOSE(A1+1,1,2,3,4,5,6,7,8,9,10) "Zakynthos" wrote: I want to input a formula to a cell that contains 10 arguments - I realise I cannot use the IF function for more than 7 arguments. So what formula would I use to find: If A1 is blank, return a "1". If A1 contains a "1", return a "2", if it contains a "2", return a "3" etc up to and including a "9"? (i.e. 10 arguments in all. Can it be done? Many thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using the results of formulae between different spreadsheets. | Excel Worksheet Functions | |||
Change to formulae | Excel Worksheet Functions | |||
Dynamic formulae - similar to lotus 123 for excel | Excel Discussion (Misc queries) | |||
XL2002 Clipboard doesn't paste formulae | Excel Discussion (Misc queries) | |||
vlookup change column index position - without changing formulae | Excel Worksheet Functions |