+ Reply to Thread
Results 1 to 5 of 5

help extending formula to range

  1. #1
    Registered User
    Join Date
    10-15-2005
    Posts
    3

    help extending formula to range

    I am stuck with extending the formula to a range in a column. I need to implement a "for loop" for the formula below..... Help!!!

    This works:
    =IF(C2="ABC",IF(D2="XYZ",COUNTIF(Q2,"done")))

    I want something like:
    =IF(C3:C1000="ABC",IF(D3:D1000="XYZ",COUNTIF(Q3:Q1000,"done")))

    Thanks in advance for your help!

  2. #2
    Gary Keramidas
    Guest

    Re: help extending formula to range

    i think this will work

    =SUM(IF(C3:C1000="ABC",IF(D3:D1000="XYZ",IF(Q3:Q1000="done",1,0))))

    --


    Gary


    "pgd" <pgd.1wz8ea_1129435503.4226@excelforum-nospam.com> wrote in message
    news:pgd.1wz8ea_1129435503.4226@excelforum-nospam.com...
    >
    > I am stuck with extending the formula to a range in a column. I need to
    > implement a "for loop" for the formula below..... Help!!!
    >
    > This works:
    > =IF(C2="ABC",IF(D2="XYZ",COUNTIF(Q2,"done")))
    >
    > I want something like:
    > =IF(C3:C1000="ABC",IF(D3:D1000="XYZ",COUNTIF(Q3:Q1000,"done")))
    >
    > Thanks in advance for your help!
    >
    >
    > --
    > pgd
    > ------------------------------------------------------------------------
    > pgd's Profile:
    > http://www.excelforum.com/member.php...o&userid=28141
    > View this thread: http://www.excelforum.com/showthread...hreadid=476569
    >




  3. #3
    Registered User
    Join Date
    10-15-2005
    Posts
    3
    The formula result is evaluated correctly, Thanks!

    However, I still have an issue - the value displayed is "0". The cell format is "general".

  4. #4
    Gary Keramidas
    Guest

    Re: help extending formula to range

    sorry, it's an array formula. after you enter it, do control-shift-enter
    instead of enter

    --


    Gary


    "pgd" <pgd.1wzmad_1129453507.5911@excelforum-nospam.com> wrote in message
    news:pgd.1wzmad_1129453507.5911@excelforum-nospam.com...
    >
    > The formula result is evaluated correctly, Thanks!
    >
    > However, I still have an issue - the value displayed is "0". The cell
    > format is "general".
    >
    >
    > --
    > pgd
    > ------------------------------------------------------------------------
    > pgd's Profile:
    > http://www.excelforum.com/member.php...o&userid=28141
    > View this thread: http://www.excelforum.com/showthread...hreadid=476569
    >




  5. #5
    Registered User
    Join Date
    10-15-2005
    Posts
    3
    cool! got it to work. Thanks very much!!!

    D

+ 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