How to make an Excel nested if, else, and statement - Stack Overflow
Nested IFs; A More Efficient Way?
Is Nested IF Statements the correct function to use?
Any alternatives to nested IF functions?
Possibly. It depends on what your conditions are. There are functions like CHOOSE, VLOOKUP, MATCH, IFS (in Excel 2016) any or some of which might work.
More on reddit.comVideos
Hey fellow Redditors,
I am working on an Excel spreadsheet tracking state/country attendance for my work, and I am trying to build a formula that references a long list (~250 rows) of country names and their country code equivalent and automatically fills in the country code in column D based off of the country name typed out in column C. After some research and testing, Iโve discovered one way to do this as nesting IF statements. The formula I currently have started is: =IF(C94=H$1,I$1,IF(C94=H$2,I$2,IF(C94=H$3,I$3,IF(C94=H$4,I$4,IF(C94=H$5,I$5,IF(C94=H$6,I$6,IF(C94=H$7,I$7,โฆIF(C94=H$250,I$250)))))))) Iโve only typed out a few of these statements (IF(CX=H$X,I$X)), and after some concern about character limit in formulas, I am both tired and concerned that I will not be able to finish my formula this way as it stands. There has got to be a better way to do this, I just donโt have enough Excel experience to be able to figure out how I could effectively condense this formula (tried a couple things, like trying to reference the columns by H:H and I:I; didnโt work)
Your advice is much appreciated!
I have two cells with two conditions: yes or no, and Iโm looking to return 1 of three possible values for three different scenarios:
If A1=โNoโ, then โ3โ If A1=โYesโ, AND B2=โYesโ, then โ1โ If A1=โYesโ, AND B2=โNoโ, then โ2โ
I keep getting an error with my formula:
=IF(A1=โNoโ,3,IF(AND(A1=โYesโ,B2=โYesโ,1),IF(AND(A1=โYesโ,B2=โNoโ,2))
Is this the correct function to achieve what Iโm looking for?
Can excel accomplish this in one cell? Very novice and insight would be appreciated.