# Help on defining an Excel formula based on a special condition

1. ## Help on defining an Excel formula based on a special condition

Hi Team,

I am in a bit of a fix with a formula I want to set up.

The goal is to calculate the total meal allowance (column E).

The intended formula is: Meal allowance rate (column B) * days in Germany (column C) * ((no of children)+1 if the number of days in Germany is more than zero).

I am struggling to capture the last bit of the formula (...*((no of children)+1 if the number of days in Germany is more than zero). The plus 1 only happens as long as the value in column C is more than zero.

Example is as shown in row 3 in my screenshot(Fred):

6.41* 16 * (0+1) = 384.6 (Here I added 1 because the value in C3 is more than zero.

Example in row 4 (Jane) is also seeing a +1 because even though the number of children is zero, the value in column C4 is more than zero.

Hope my explanation is clear enough.

Regards,

Kay Bee

2. ## Re: Excel - Formula Question

We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

(Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

3. ## Re: Help on defining an Excel formula based on a special condition

Please re-read the forum rules you agreed to as you have a problem with keeping them.

Welcome to the forum.

We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

(Note: this requirement is not optional. No help to be offered until the link is provided.)

There are currently 1 users browsing this thread. (0 members and 1 guests)