+ Reply to Thread
Results 1 to 2 of 2

selecting specific numbers using if

  1. #1
    Registered User
    Join Date
    06-21-2013
    Location
    Uk
    MS-Off Ver
    Excel 2007 & 10
    Posts
    11

    selecting specific numbers using if

    Hi all,

    I have this column ( as a small example ) :
    40
    40
    40
    0
    0
    0
    50
    50
    50
    0
    0
    0
    60
    60
    60
    0
    0
    0

    I want to select for example the 40's and only the 0's that follow it. So in this example the answer will be like this :

    40
    40
    40
    0
    0
    0


    Can u please guide me ?



    Thanks

    AS

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,421

    Re: selecting specific numbers using if

    Assume your data starts in A2 (insert a blank row 1 if it currently starts in A1), then you can put this in the next adjacent empty column (e.g. cell B2):

    =IF(A2=0,B1,A2)

    then copy down. Then you can apply a filter to column B to select 40, and those entries as well as the zeros which follow will be shown.

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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