Donate SIGN UP

EXCEL - Nested IF Functions

Avatar Image
funkylad20 | 11:55 Wed 27th Aug 2008 | Computers
3 Answers
I am trying to use a nested if formula using text rather than numbers from validation drop down options.

Cell A1 = "Term Time Only" OR "Full Time"
Cell A2 = "Autumn", "Spring", "Summer"

I want Cell A3 to read as:
If Cell A1 = Term Time Only AND Cell A2 = Spring, END RESULT IN CELL A3 IS THE FIGURE 12

BUT I need Cell A3 to then read as:
If Cell A1 = Full Time AND Cell A2 = Autumn, END RESULT IN CELL A3 IS THE FIGURE 16

There are differnet options for different cells, dependent on two cells with options in each.

I have mastered the initial part, but NOT the second and third part of the formula....so far I have:

=IF(A2="Autumn Term 2008",IF(A1="Term-Time Only",14,IF(A1="Full Time",16))))
Gravatar

Answers

1 to 3 of 3rss feed

Best Answer

No best answer has yet been selected by funkylad20. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Here's a function I wrote which returns a value of 0, 1, 2, 3 or 4 dependent on the contents of cells A1 & A2 :

If there is an A in A1 and a C in A2 then the function will return a 1

If there is an A in A1 and a D in A2 then the function will return a 2

If there is a B in A1 and a C in A2 then the function will return a 3

If there is a B in A1 and a D in A2 then the function will return a 4

If the combination is none of the above then the function will return a 0


=IF(AND(A1="A",A2="C"),1,IF(AND(A1="A",A2="D"),2,IF(AND(A1="B",A2="C"),3, IF(AND(A1="B",A2="D"),4,0))))

Just substitute the text in quotes with your own text and the 0, 1, 2, 3 & 4 with your numbers.

Give it a go and let me know how you get on.

BW
I though I would try it out & here it is :


=IF(AND(A1="Term Time Only",A2="Autumn"),1,IF(AND(A1="Term Time Only",A2="Spring"),2,IF(AND(A1="Term Time Only",A2="Summer"),3, IF(AND(A1="Full Time",A2="Autumn"),4,IF(AND(A1="Full Time",A2="Spring"),5,IF(AND(A1="Full Time",A2="Summer"),6,0))))))

Just substitute your numbers for the 1,2,3,4,5 & 6

BW
Question Author
Works, fantastic. Thank you!

1 to 3 of 3rss feed

Do you know the answer?

EXCEL - Nested IF Functions

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.