Formula Help

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,129
Office Version
  1. 365
Platform
  1. Windows
Looking for a formula maybe in Column J that i can pull down and give me the results. Numbers in column D Higher then 8 need to break it out like i did in i and J like 8 and 2
Next number is 9 so would be 8 and 1. If any number is under 8. Then i need it to pull the number in and i and J can have a 0 or not like you see the 6 0. Any help much apricated

Book1
ABCDEFGHIJK
1
2Formula
31082
4981
51183
61183
7660
8
9
Sheet1
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Like this for J3 (copied down)?
Excel Formula:
=MAX(D3-8,0)

If you also need a formula for column I, you could use:
Excel Formula:
=MIN(D3,8)
 
Upvote 0
Solution
Won't max just use the maximum value in the whole column (11) rather than compare row by row?
I was also wondering about using Mod, but don't know if any value can exceed 15 because the sample data is so small. Something like
=IF(O6>8,MOD(O6,8),O6) to get the remainder, and
=IF(O6>8,O6-Q6,O6) to get the major value
but you can see it doesn't work for 16 and up.
1734556033572.png
 
Upvote 0
I will try with Joe4 first as its working. My number usually doesn't go higher then 15 but sometimes its possible.
 
Upvote 0
Never mind. I missed that D3 would become D4 and so on. Not sure if it works for >15 since I don't know about that.
EDIT - FYI, I posted before seeing your latest post.
 
Upvote 0
If you used this in col I
Excel Formula:
=MIN(D3,8)

then in J you don't need the MAX() since it will never go above what's in I.
Excel Formula:
=D3-I3
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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