+ Reply to Thread
Results 1 to 3 of 3

IF function: how to auto count values?

  1. #1
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    IF function: how to auto count values?

    Is ther any way to do this:

    =IF('[PERFORMANCE SHEETS.xlsx]G1'!Q$38=1,1," ")

    when I drag the cell ACROSS to the right, the values must add 1:

    =IF('[PERFORMANCE SHEETS.xlsx]G1'!Q$38=1,1," ")
    becomes
    =IF('[PERFORMANCE SHEETS.xlsx]G1'!Q$38=2,2," ")
    becomes
    =IF('[PERFORMANCE SHEETS.xlsx]G1'!Q$38=3,3," ")

    and so on?
    Last edited by Schalk; 11-17-2011 at 02:35 AM. Reason: Solved!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: IF function: how to auto count values?

    Try:

    =IF('[PERFORMANCE SHEETS.xlsx]G1'!Q$38=COLUMNS($A$1:A$1),COLUMNS($A$1:A$1)," ")

    Also, do you need space at the end? Usually it's easier to use excel data WITHOUT space:

    =IF('[PERFORMANCE SHEETS.xlsx]G1'!Q$38=COLUMNS($A$1:A$1),COLUMNS($A$1:A$1), "")
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    11-15-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    101

    Re: IF function: how to auto count values?

    Thanx! Going to try that!

+ 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