Divide Function with conditions

srinath tantri

New Member
Joined
Dec 10, 2017
Messages
12
Hello,

I am looking preparing a tool which helps in getting value based upon certain clauses provided below :

If X= 500$
Y = 1 (Frequency for time period in months).
Z=500$/2 and Z > 200$ then Z should be Maximum limit of "200$" per 1 month.

In other case,

If X=500$
Y= 2
Z= 500$/2 and Z>400$ then Z should be Maximum limit of "400$" per 2 months.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Re: Divide Function with condtions!!

Hello,

I am looking for assistance in preparing a tool which helps in getting values based upon certain clauses provided below :

If X= 500$
Y = 1 (Frequency for time period in months).
Z=500$/2 and Z > 200$ then Z should be Maximum limit of "200$" per 1 month.

In other case,

If X=500$
Y= 2
Z= 500$/2 and Z>400$ then Z should be Maximum limit of "400$" per 2 months.

Appreciate your help on this in advance!

Have a great day ahead!
 
Upvote 0
Re: Divide Function with condtions!!

Assuming X is in A1, Y in B1, Z in C1 and message to be displayed in D1.

In C1, enter

Code:
=A1/2

in D1, enter

Code:
= IF(AND(B1=1, C1>200),"Maximum limit of 200$ per 1 month",  IF(AND(B1=2, C1>400),"Maximum limit of 400$ per 2 months", ""))
 
Upvote 0
Re: Divide Function with condtions!!

Hello Mystie,

Thanks for all your help, the code you have provided has assisted me initially starting up and following the same for replicating it for other conditions as well.

I really appreciate your prompt response on this. :)

Will post few more condtions and hope you help me in solving them too.!

Have a great day ahead!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top