+ Reply to Thread
Results 1 to 4 of 4

need help to capture first number

  1. #1
    Registered User
    Join Date
    01-13-2014
    Location
    vilnius
    MS-Off Ver
    Excel 2003
    Posts
    2

    need help to capture first number

    Hello,
    I need help
    I have excel formula which let for different numbers appear in the same cell,
    =IF(OR(F7={10,10.5,11,11.512,12.5,13,13.5,14,14.5,15}),5,IF(OR(F7={15.5,16,16.5,17,17.5,18,18.5,19,19.5,20}),11,IF(OR(F7>=20.5),15,"")))

    for example we have AS1 cell in which appear first number 15, then it change to 5, then it change to 15, then it change to 11 etc. What i need is to capture and lock just the first shown number (in this ex. it has to be 15) and put it to another cell (for ex. cell AT1)
    Maybe there is any formula ?
    Thanks.
    M.

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: need help to capture first number

    Unfortunately, when you use a formula, it will be dynamic. The moment the value changes in F7, it will update in AS1, and if AT1 is also a formula, it will change every time the value in AS1 changes.
    On the other hand, if a macro does this: Changes the AT1 value to a hard-coded number whenever AS1 changes, it will also trigger every time...which defeats the purpose.
    Is there a way that we can determine what the first shown number is. Like lock it to never change if a date for that record is after today's date???
    Regards,
    Rudi

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: need help to capture first number

    Hi,

    It's not clear to me what you want.

    Would you upload your workbook and manually add the results you expect with some explanatory notes.

    Just as an observation, and I know you're not looking for a shorter formula, but
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    would seem simpler than your current formula
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-13-2014
    Location
    vilnius
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: need help to capture first number

    Thanks Rudis for opinion and Richard for better formula. I agree, that there isn't easy way to solve this problem. Just have to choose another way.

    E.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Using LARGE Function to capture 2nd Largest number
    By Jietoh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-26-2013, 07:58 AM
  2. How to capture number of kids whose under 20 year old?
    By Shermaine2010 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-14-2013, 12:44 PM
  3. [SOLVED] How to "Capture" Records Found Number During AutoFilter
    By Paputxi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-20-2006, 10:45 PM
  4. [SOLVED] Capture ENTER
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2005, 06:05 PM
  5. Capture Col number
    By davegb in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-01-2005, 10:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1