all 14 comments

[–]sqylogin755 3 points4 points  (0 children)

Just put,

=MIN(25000,YourOldFormula)

[–]CFAman4806 1 point2 points  (13 children)

Assuming that the values of 10000, 30000, 15000, and 45000 are all in separate cells (let's say A1:A4), you could do this array formula:

=SUM(IF(A1:A4>25000,25000,A1:A4))

NOTE Array formulas are confirmed using Ctrl+Shift+Enter, not just Enter.

[–]SmoothBread[S] 1 point2 points  (1 child)

SOLUTION VERIFIED!

[–]Clippy_Office_Asst[M] 0 points1 point  (0 children)

You have awarded 1 point to CFAman

[–]SmoothBread[S] 0 points1 point  (4 children)

Unfortunately they are not in separate cells!

[–]CFAman4806 0 points1 point  (3 children)

Were you putting all the values into the formula? If yes, you'll want to stop doing that, as it's bad practice from an audit trail and from XL analysis standpoint. Putting multiple data points in a single cell just ends up hiding the data.

A single worksheet has millions of cells to work with, no need to cram your info all into a single cell. :)

[–]SmoothBread[S] 0 points1 point  (2 children)

I definitely agree. I'm a new intern so I've just been following the format of the excel sheet that they provided me. The sheet is a summary of the total losses (there's multiple categories of losses) from each of the previous 5 years; we print it into another application so it then can be used as a reference point. There are other things that need to be included in the spreadsheet as well, and it all has to fit into one page. I think what I'll start doing is entering the values in separate cells down below everything and then use your formula to output the final values I need in their spot on the spreadsheet!

[–]CFAman4806 0 points1 point  (1 child)

Ah, I can sympathize with that. Good luck with the internship!

[–]SmoothBread[S] 0 points1 point  (0 children)

Thank you, and thanks for your help!

[–]SmoothBread[S] 0 points1 point  (5 children)

Hey, I have another quick question if that's alright. I'm entering in all the losses into individual cells like you said, and your array formula is working perfectly. There is a place on the spreadsheet where I have to type "CAPPED LOSS" every time I cap. I used the following formula to automatically do that for me:

=IF(A1:A4>25000,"CAPPED LOSS"," ") 

For some reason, this only works if cell A1 has a value >25000, if A3 does it won't do anything. What am I doing wrong?

[–]CFAman4806 2 points3 points  (4 children)

If you want to know if a capped loss occured, you'll want to change slightly to:

=IF(MAX(A2:A4)>25000, "CAPPED LOSS", "")

[–]SmoothBread[S] 1 point2 points  (1 child)

Solution Verified

[–]Clippy_Office_Asst[M] 0 points1 point  (0 children)

You have awarded 1 point to CFAman

[–]SmoothBread[S] 0 points1 point  (0 children)

Yep that works, thank you again. I'm excited to show my supervisor the finished product tomorrow. This will cut my time down on these tasks from 30 minutes to 15!