+ Reply to Thread
Results 1 to 4 of 4

If true +1

  1. #1
    Registered User
    Join Date
    06-28-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Talking If true +1

    Hi,

    Apologies, but I couldn't find anything on this, mainly because i didnt know what to search for!!

    I have the following in column A;

    =IF(AND($F3='Surveyor Summary'!$C$2,($G3>='Surveyor Summary'!$C$3)*($G3<='Surveyor Summary'!$C$4)),1,0)

    (Column F contains a company name, Column G contains a date - the Summary sheet has criteria relating to these [Company Name, From date, To date]).

    The above works, and returns 1 each time it is true. How can I adapt the formula so that each TRUE value has a higher number (1, 2, 3, 4 and so on?).

    Thanks
    Lucraft
    Last edited by lucraft; 06-30-2011 at 04:13 AM.

  2. #2
    Forum Contributor
    Join Date
    10-16-2008
    Location
    Iowa
    Posts
    121

    Re: If true +1

    Quote Originally Posted by lucraft View Post
    Hi,

    Apologies, but I couldn't find anything on this, mainly because i didnt know what to search for!!

    I have the following in column A;

    =IF(AND($F3='Surveyor Summary'!$C$2,($G3>='Surveyor Summary'!$C$3)*($G3<='Surveyor Summary'!$C$4)),1,0)

    (Column F contains a company name, Column G contains a date - the Summary sheet has criteria relating to these [Company Name, From date, To date]).

    The above works, and returns 1 each time it is true. How can I adapt the formula so that each TRUE value has a higher number (1, 2, 3, 4 and so on?).

    Thanks
    Lucraft
    Insert a sample of data.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If true +1

    Assuming that formula is in A3, then try:

    =IF(AND($F3='Surveyor Summary'!$C$2,($G3>='Surveyor Summary'!$C$3)*($G3<='Surveyor Summary'!$C$4)),MAX($A$1:$A2)+1,0)

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    06-28-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2007
    Posts
    23

    Talking Re: If true +1

    Quote Originally Posted by NBVC View Post
    Assuming that formula is in A3, then try:

    =IF(AND($F3='Surveyor Summary'!$C$2,($G3>='Surveyor Summary'!$C$3)*($G3<='Surveyor Summary'!$C$4)),MAX($A$1:$A2)+1,0)

    copied down
    Thats brilliant, thanks!

    It works well and is soooo simple now that I see it!

+ 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