Over limit or Nearly Over Limit

wayneshirley

Board Regular
Joined
Jun 23, 2003
Messages
140
Hi there,

I have a spreadsheet that has a customers credit limit in column E and the customers balance in column F.

I need a formula that will determine which accounts are either over their limit or within 90% of their limit. The results need to show as "yes" if over the limit, "yes" if within 90% of their limit and "no" if under 90% of the limit.

Example 1. Limit $1000, balance $950. This is within 90% of the limit. Results to show as "yes" in column M.

Example 2. Limit $1000, balance $1100. This is over the limit. Results to show as "yes" in column M.

Example 3. Limit $1000, balance $ 500. This is under 90% of the limit. Results to show as "no" in column M.

Thank you.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi Grizle,

Thank you for the formula.

I copied it into my macro but Excel has highlighted it in red. Don't know what the error is. Can you help please?

Thank you.
 
Upvote 0
Maybe try this:

Code:
=IF((F2/E2)>0.9,"yes","no")

vba code is:

Code:
ActiveCell.FormulaR1C1 = "=IF((RC[-7]/RC[-8])>0.9,""yes"",""no"")"

AMAS
 
Upvote 0
Hi Mike,

I agree, but in this case, I see this as a checkmark to make sure that both cells have some useable data in them. In post #2, the default is always 'no' even if there is missing data.

AMAS
 
Upvote 0
Change the inequality and either "yes" or "no" becomes the default. An error in the cell will cause errors downstream.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,634
Members
452,934
Latest member
Jdsonne31

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