Formula Help

bluenose5709

New Member
Joined
Dec 15, 2012
Messages
23
Office Version
  1. 365
Hi,

I am banging my head tying to figure out what many of you may see as a simple formula. I am hoping someone may help me and prevent an increasing headache.

So I have a simple Worksheet and I wish for a calculation to be made based upon a figure I populate for example:

If the figure in D5 is >500 but <1001 the calculate D5*E9
If the figure in D5 is >1000 but <2001 the calculate D5*E10
If the figure in D5 is >2000 but <3001 the calculate D5*E11

This is something i have done before but i am having a brain fog and just need someone to re-educate me.

Thank you all in anticipation

Bev
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
What do you want to do return if it is outside those values?
But right now I have this:
=D5*OFFSET(E9,MATCH(D5,{500,1001,2001},1)-1,0)
 
Upvote 0
What should happen if D5 is <=500 or >=3001
 
Upvote 0
All, This works perfectly. Thank you.

To answer your questions, i would prefer that there was either a Zero returned if outside of the prescribed values or indeed a nice message informing the user to "Speak to BOB"

thank you again

regards
Bev
 
Upvote 0
How about
Excel Formula:
=IF(OR(D5<=500,D5>=3001),"Speak to Bob",IF(D5<1001,5*E9,IF(D5<2001,D5*E10,D5*E11)))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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