+ Reply to Thread
Results 1 to 3 of 3

Thread: IF statement

  1. #1
    Valued Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    219

    IF statement

    Hi everyone.

    I have a data entry range running from C6:AD2506.

    In cell A6 i want it to say "Item." is cells C6:AD6 are all blank and just "Item" if there is any data entered on that row (wihtihn my range).

    Should I compare C6:AD6 to a blank row at the bottom of the page for this? or .......

    Well, how should I do it. Also where in the formula do I have to put the $$$$ marks?

  2. #2
    Forums Administrator royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    24,447
    Try

    =IF(COUNTA(C6:AD6)=0,"Item","")

    Can you post in the correct forum, this should be in the Functions forum.
    Last edited by royUK; 07-16-2008 at 06:29 AM.
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel consulting, free examples and tutorials visit Excel Consulting-Excel VBA
    Check out the free Excel Toolbar

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)


    Code Tags: Make your code easier for us to read

  3. #3
    Valued Forum Contributor
    Join Date
    07-10-2008
    Location
    UK
    Posts
    219
    oops sorry.

    that worked perfectly btw..thanks

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.2.0