Computing.Net > Forums > Office Software > Excel Formula

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel Formula

Reply to Message Icon

Name: theatregirl26
Date: August 5, 2009 at 08:14:56 Pacific
OS: Windows XP
Product: Microsoft Microsoft excel 2007 (pc)
Subcategory: Microsoft Office
Comment:

I have a user who needs to create codes for locks. Here is what he wants to do. He has numbers listed in a column. He wants to find the lowest number in the column, then subtract that number from the next lowest number and so on. I believe he wants to find as many results as possible. I hope this makes sense. Does anyone have any ideas?

Thanks so very much!



Sponsored Link
Ads by Google

Response Number 1
Name: jon_k
Date: August 5, 2009 at 08:51:53 Pacific
Reply:

Well if they're in column A,

=SMALL(A:A,1) will give you the smallest

=SMALL(A:A,2) will give the second smallest, etc.

So for one minus the other:
=SMALL(A:A,1)-SMALL(A:A,2)

I'm not sure if the user has specified exact enough requirements though. Any chance of bit more detail? Thanks!


0

Response Number 2
Name: DerbyDad03
Date: August 5, 2009 at 09:18:35 Pacific
Reply:

jon: Have you got your values reversed?

"find the lowest number in the column, then subtract that number from the next lowest number and so on.

=SMALL(A:A,2)-SMALL(A:A,1)

actress (I assume): For ease of entering this formula, assuming the values begin in Row 1, you could use:

=SMALL(A:A,ROW()+1)-SMALL(A:A,1)

ROW() will pick up the current Row number (1) and adding 1 gives you 2. As you drag it down, ROW() will increment each time, so you'll get 2, 3, 4 as the k arguments for the SMALL function.

You can easily adjust the starting value by using things like ROW()-1, ROW()+2, etc. to compensate for the actual starting row and still get 2, 3, 4 etc.


0

Response Number 3
Name: jon_k
Date: August 6, 2009 at 01:33:03 Pacific
Reply:

oops! I have marked myself down to highlight my error!


0

Response Number 4
Name: DerbyDad03
Date: August 6, 2009 at 04:14:33 Pacific
Reply:

And I voted you up for voting yourself down. <g>


0

Response Number 5
Name: theatregirl26
Date: August 6, 2009 at 10:50:53 Pacific
Reply:

Thanks for your help. It isn't exactly what he is looking for. My fault. I am having a hard time explaining it. So sorry. Here is what he wrote me. Perhaps this will help.

Jen,

The #'s in the boxes are the variables. the #'s below are the answers I am looking to get with the formula. 1+4=5, 1+4+2=7, 1+4+2+2=9 for row one. 0+2=2, 0+2+6=8, etc.

Thanks,



9 X
7 6
5 2
1 0

2 X
2 4
4 2
1 0


0

Related Posts

See More



Response Number 6
Name: DerbyDad03
Date: August 6, 2009 at 11:27:17 Pacific
Reply:

I'm not sure you've made it much clearer, at least not to me.

re: The #'s in the boxes are the variables.

What boxes?

re: 1+4=5, 1+4+2=7, 1+4+2+2=9 for row one

Those numbers appear to be the values in Column 1, not Row 1.

In any case, to get 1, 5, 7, 9 from 1, 4, 2, 2 try this:

Put 1, 4, 2, 2 in A2:A5

Leave B1 empty

Put =A2+B1 in B2 and drag it down.

You'll get 1, 5, 7, 9 in B2:B5


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel Formula

Excel Formula Help www.computing.net/answers/office/excel-formula-help/2797.html

Problems with Excel Formulas www.computing.net/answers/office/problems-with-excel-formulas/5502.html

Excel formula...again... www.computing.net/answers/office/excel-formulaagain/6741.html