• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Ennumber of conditional IF statment

sampath

Member
I have a very long if condition for my dashboard. kindly help me for my requirement which was mentioned below.

IF A1="CMO" and B1="S" then C1=12
IF A1="CMO" and B1="M" then C1=20
IF A1="CMO" and B1="C" then C1=40
IF A1="PDB" and B1="S" then C1=12
IF A1="PDB" and B1="M" then C1=24
IF A1="PDB" and B1="C" then C1=40
IF A1="FAV" and B1="S" then C1=8
IF A1="FAV" and B1="M" then C1=20
IF A1="FAV" and B1="C" then C1=32
IF A1="CTP" and B1="S" then C1=2
IF A1="CTP" and B1="M" then C1=8
IF A1="CTP" and B1="C" then C1=16
IF A1="SOU" and B1="S" then C1=4
IF A1="SOU" and B1="M" then C1=12
IF A1="SOU" and B1="C" then C1=32
IF A1="LAT" and B1="S" then C1=4
IF A1="LAT" and B1="M" then C1=8
IF A1="LAT" and B1="C" then C1=32
IF A1="Roof" and B1="S" then C1=4
IF A1="Roof" and B1="M" then C1=8
IF A1="Roof" and B1="C" then C1=16
IF A1="Seat" and B1="S" then C1=4
IF A1="Seat" and B1="M" then C1=8
IF A1="Seat" and B1="C" then C1=16
IF A1="FAR" and B1="S" then C1=4
IF A1="FAR" and B1="M" then C1=12
IF A1="FAR" and B1="C" then C1=32
IF A1="Top" and B1="S" then C1=2
IF A1="Top" and B1="M" then C1=4
IF A1="Top" and B1="C" then C1=8


Please help me for these conditions.

Regareds,
Sampath.S
 
Hi:
If you have so many conditions it is better to create a look up table and retrieve values from there using index/match or vlookup.

Thanks
 
I second Nebu & Faseeh

Creating a lookup table is the ideal solution in such situation..

Here is the other way of doing this..
 

Attachments

  • Excel_Output.xlsx
    13.6 KB · Views: 0
Back
Top