Forum Discussion

AL1992's avatar
AL1992
Copper Contributor
Feb 12, 2020

Complex IF Formula with multiple

Hi, I am new to Excel and trying to complete what I would consider quite a complicated IF formula (if that is even the correct function to use here!)

 

An example of my Dataset: 

 

ABCDEF
1FUNDFUND CODETYPETYPE CODERATE
2

Fund1

1Cat1 
3Fund11Dog2 
4Fund11Fish3 
5Fund22Cat1 
6Fund22Dog2 

 

In a separate sheet I have the Rate Table:

 

Fund 1Cat0.10
Fund 1Dog0.20
Fund 1Fish0.30
Fund 2Cat0.40
Fund 2Dog0.50
Fund 2Fish0.60

 

In F, I want to say IF B2 = Fund1 and D2 = Cat = 0.10 (from the rate table) and so on.

 

Please can you help with the formula to use? Note, I have create the FUND CODE and TYPE CODE thinking that it would simplify the formula needed for F, also not sure if this is the best approach!

 

Also may be worth noting that in my real dataset I have 11+ Types!

 

4 Replies

    • AL1992's avatar
      AL1992
      Copper Contributor

      Thanks for the quick reply SergeiBaklan 

       

      Quick question, of the 2 options you've provided, which would be more suitable if the rates were changing quarterly? Also, in my example the cat/dog/fish were the same in both funds, what if there are different types for each fund? E.g. fund 1 = cat, dog fish however fund 1 = owl, cow, horse

       

      would there be a more favourable formula of the 2 options you've provided?

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        AL1992 

        Better the formula with which you are more familiar, I personally prefer INDEX/MATCH.

        Your lookup the combination of fund and type, i.e. (FUND=fund1) AND (TYPE=type1), that doesn't matter which exactly types are.

Resources