Updating a formula =Min but Sum up first

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,129
Office Version
  1. 365
Platform
  1. Windows
Hi I use this formula so it caps the number from another sheet i have. I need an update thought on it if i can formula=MIN((G2),1718.15)
The sample sheet below where G has the numbers. Need total of the numbers by date in column H on the last line in before the date changes and use the formula =MIN((G2),1718.15) or something else so it caps it. The green is the total and capped as you can see. Can the formula be updated so i can just drag it down.

Book1
GHI
223.564/15/2023
323.564/15/2023
423.5670.684/15/2023
51440.534/22/2023
6625.24/22/2023
720.54/22/2023
840.561718.154/22/2023
Sheet1
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hello, not sure if I understand it correctly:

Excel Formula:
=IF(COUNTIFS(I$1:I1,I1)=MAX(COUNTIFS($I$1:$I$7,I1)),MIN(SUMIFS($G$1:$G$7,$I$1:$I$7,I1),1718.15),"")
 
Upvote 0
HI it works fine but i need to raise the number since the sheet it long. I raised the 7 to 6000 and then it returns nothing. Do you know why?
 
Upvote 0
Hi i figured out why because when i pull formula and if the date is the same on another line above somewhere. Its returning zero. Anyway t to change it so if sums by date but if same date shows up again down the sheet it wont do this?
 
Upvote 0
You know what it is. In Column E and didn't realize it. It also changes names at some point. Which then starts with dates already used sorry. So when i up the Sheet number it doesn't work. Anyway around it.
Column E names go by last name first name. Strave, Joe
 
Upvote 0
Ok basically when going down the sheet If the name changes in Column E, You can see my sheet. The date may start as the same above. This is throwing the formula off when i put it in H and drag it down.

Book6
ABCDEFGHIJ
1secteNNameHEPdate
2Ruff, Mike16.01,462.401,176.374/5/2023
3Ruff, Mike-1.001.004/5/2023
4Ruff, Mike2.0365.60182.804/5/2023
5Ruff, Mike-46.2046.204/5/2023
6Ruff, Mike-90.0090.004/5/2023
7Ruff, Mike-87.78-4/12/2023
8Ruff, Mike32.02,924.801,241.094/12/2023
9Ruff, Mike-1.901.904/12/2023
10Ruff, Mike3.0548.40274.204/12/2023
11Ruff, Mike-171.00171.004/12/2023
12Bet, Joe-87.78-4/5/2023
13Bet, Joe32.02,924.801,241.094/5/2023
14Bet, Joe-1.901.904/5/2023
15Bet, Joe3.0548.40274.204/5/2023
16Bet, Joe-171.00171.004/5/2023
17Bet, Joe-152.46-4/12/2023
18Bet, Joe40.03,656.00238.024/12/2023
19Bet, Joe-297.00297.004/12/2023
20Bet, Joe13.02,376.401,153.174/12/2023
21Bet, Joe-3.30-4/12/2023
Sheet1
 
Upvote 0
Hi anything on this. My guess the countif will not work if it spots the same year in column J going down. The reason why the same year comes up again because the name changes in Column E as you can see in Line 12
 
Upvote 0
How about
Excel Formula:
=IF(AND(J2=J3,E2=E3),"",MIN(1715.15,SUMIFS(G:G,E:E,E2,J:J,J2)))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
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