Hi Seems that the Nested IF Formulas is a hard one to work out, well at least for me.
I have a Connector that talks to a SQL Database to get information to build a tariff and am trying to use this to use as a costing tool, I work in Travel.
In General I have gotten it to work with different possible scenarios for the rates and how to treat the totals but I have come across a tricky one.
Most Sightseeing services are Per Person based and so this I have working fine if there is a rate avaialble or to look up a cell for a manually entered rate. But I then found out that there are some services that are based on a group Cost and not PP and so I need to determine firstly if the rate is based on PP or Group and then to either multiply the rate by the number of people on the costing or to leave as a group cost, got this to work fine. The tricky bit is I need to also build into this if it is a Manual rate and to look up the rate.
So any help would be appreciated but unfortunately I can't send a file because of the connector but below is the formulas I am using, if they make any sense.
To get the rate if it is a Per Person or group and treat it accordingly:
=IF(getTariffValue($A5,Parameters!$D$21)="1",getTariffRate($A5,$C5,$H9,,,,$H8)*$H$1,getTariffRate($A5,$C5,$H9,,,,$H8))
When I try to nest another IF statement to try to add in a Manual rate I get a result of FALSE and cannot figure what I have missed or got in the wrong place, the formula is:
=IF(getTariffValue($A5,Parameters!$D$21)=1,getTariffRate($A5,$C5,$H9,,,,$H8)*$H$1,IF(getTariffRate($A5,$C5,$H9,,,,$H8)="N/A",($L9($L9*$H$8/100),getTariffRate($A5,$C5,$H9,,,,$H$8))))
I tried to construct based on another discussion but clearly I am missing something.
I am not sure if anyone can guide me in the right direction but any help or constructive critisism appreciated.
Bookmarks