+ Reply to Thread
Results 1 to 4 of 4

IF function with a range of cells

Hybrid View

  1. #1
    Registered User
    Join Date
    02-24-2008
    Posts
    2

    IF function with a range of cells

    I'm creating a Wedding budget and one of the categories is decorations. This category has about 11 subcategories.

    What I want to be able to do is make and if function that will return the word "PAID" if all the cells in the cell range of the cell categories have the word "PAID" in it. Here's my equation so far.
    =IF(H14:H24="PAID","PAID",0)
    all it returns is a #VALUE! error
    Last edited by VBA Noob; 02-24-2008 at 05:00 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =IF(AND(H14:H24="PAID"),"PAID",0)
    It's an array formula so enter with Ctrl + Shift + enter

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  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,

    Congatulations first of all, and hope all the preparations pay's off - excuse the pun. May be something like this

    =IF(COUNTIF(H14:H24,"PAID")=11,"PAID","Not complete")
    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
    Registered User
    Join Date
    02-24-2008
    Posts
    2

    Smile

    w00t. it works. thanks guys. I'm impressed by how fast I got a response. i was expecting maybe sometime tonight.

+ 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