+ Reply to Thread
Results 1 to 5 of 5

Leaving cell blank if certain value

Hybrid View

  1. #1
    Registered User
    Join Date
    08-22-2008
    Location
    England
    Posts
    8

    Question Leaving cell blank if certain value

    Good morning,
    Sorry to bother you, but I am stuck and would be most grateful if someone could point me in the right direction please, or let me know if not possible so I can stop tearing my hair out!!
    I have a spreadsheet table which shows different things but in particular has a column of data ranging from numbers 1 to 23. I carry forward these numbers to display in a different table, so am simply linking from the second table into the first to bring that data forward (literally using formula =B1, in top cell, =B2 in second cell and so on). That's fine.
    However I would like to be able to show a blank for any occurences of numbers 4, 14 and 24.
    Is there a formula that I could use to firstly carry forward the data, but to then leave blank if the value is either 4, 14 or 24?
    Thanks.
    Last edited by oldchippy; 11-09-2008 at 11:43 AM.

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day

    Try this

    Place formula in cell B1 and copy down

    =IF(OR(B1=4,B1=14,B1=24),"",B1)
    Last edited by ratcat; 09-04-2008 at 06:23 AM. Reason: typo in formula
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Something like this will do it

    =IF(OR(A1=4,A1=14,A1=24),"",A1)
    Last edited by oldchippy; 09-04-2008 at 06:23 AM. Reason: Cell reference incorrect
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    Hi,

    Instead of

    =[Book1]Sheet1!B2
    write the following formula
    
    = IF( OR( [Book1]Sheet1!B2 = 4 ,  [Book1]Sheet1!B2 =  14 ,  [Book1]Sheet1!B2 = 24 ) , "" , [Book1]Sheet1!B2)

  5. #5
    Registered User
    Join Date
    08-22-2008
    Location
    England
    Posts
    8
    Thank you so much, you are all wonderful, that works beautifully.
    Have a good day.

+ 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. IF blank, look at other cell and if it's >74, return "1"
    By tscott in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-12-2008, 11:37 PM
  2. One criteria AND cell is blank in conditional formatting formula?
    By westis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2008, 06:37 PM
  3. Conditional Format- Blank cell with formula problem
    By Trappy in forum Excel General
    Replies: 4
    Last Post: 08-20-2007, 09:51 AM
  4. Vlookup to return blank cell
    By Stėophan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2007, 07:39 AM
  5. Removing spaces in a blank cell
    By DTran22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2006, 09:24 PM

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