Excel formula help

electrichi01

New Member
Joined
Aug 10, 2009
Messages
44
Hi folks

Looking for some help. Trying to return a value to a cell like such:

Cell A1- has a number- lets say 10
Cell A2- has a number- lets say 15
Cell B1- has a number- lets say 20
Cell C1- this is where I want to solve for the formula

Want to divide the B1 into A rows to come up with a number. We know 20 goes into 10- 2 times, so the answer would be 2. 15 goes into 20, 1.5 times.

What I want to achieve is the following:

1. When the A1 or A2 has a number that is = to or less than, I want to return 1 in cell C1. When A1 or A2 has a number that is larger than B1, I want to divide the number and if it is more than 1 (B1/A2), I want to round up to 2.

If B1 is 30, then I'd want to do the same thing- so, A1 would solve for 3 and so would A2 (even though its 2.5), and want to round up.

Thank you!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I don't understand your second example.

If B1 was 30

C1 would be equal to 3 (30/10) and C2 would be equal to 2 (30/15). Where does the 2.5 come in?
 
Upvote 0
Hi

B1 is going to be a dynamic cell that is always changing from another sheet that will trigger a change in the equation/division and rounding up.

What I'm driving at is the dynamic #, Cell B1, is going to be the determining factor as it is locked (F4) as an absolute reference to Row A (A1, A2 etc). So I want to return a rounded up number.

So, if A1 had 10 and B1, had 1-10, I want a 1 in cell C1. If A1 had 10 and B1 had 11, I want a 2 in C1. If A1 had 10 and B1 had 21, I want 3 in C1.

Make sense?

Thank you.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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