#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Auto Short

Dear Friends
I want a function which should auto short the numbers or letter
EX:
1
2
4
if i enter now 3 it should go above 4 automatically (I am not expert in VBA)

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Auto Short

Hi,

This ARRAY formula will return an exact match or of none exists the higher
number

=MIN(IF(A1:A10=B1,A1:A10))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Fareez" wrote:

Dear Friends
I want a function which should auto short the numbers or letter
EX:
1
2
4
if i enter now 3 it should go above 4 automatically (I am not expert in VBA)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Auto Short

Function cannot do ** autosort *** by itself instead can display the same
values in a different column in sorted order. Try the below VBA solution for
autosort..

Select the sheet tab which you want to work with. Right click the sheet tab
and click on 'View Code'. This will launch VBE. Paste the below code to the
right blank portion. Get back to to workbook and try out.


Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
Application.EnableEvents = False
Columns(1).Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Application.EnableEvents = True
End If
End Sub

--
Jacob


"Fareez" wrote:

Dear Friends
I want a function which should auto short the numbers or letter
EX:
1
2
4
if i enter now 3 it should go above 4 automatically (I am not expert in VBA)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
short cut Sathisc[_19_] Excel Discussion (Misc queries) 2 May 26th 09 11:45 PM
SHORT KEY adeel via OfficeKB.com Excel Discussion (Misc queries) 1 May 24th 07 04:24 PM
Short cut Key for NAME BOX Rhishy Excel Discussion (Misc queries) 2 May 27th 06 11:08 AM
short cut key vishu Excel Discussion (Misc queries) 1 May 19th 05 08:31 AM
short cut hamil Setting up and Configuration of Excel 0 March 5th 05 11:11 PM


All times are GMT +1. The time now is 06:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"