+ Reply to Thread
Results 1 to 3 of 3

Data Aggregation formulation

Hybrid View

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Data Aggregation formulation

    Excel Data.JPG

    I am compiling data from school transcripts to import into a new database.

    I need to assign a number that represents a term from a specific year to each grade. That way when I import it into my database it get assigned to the right term.

    I have already used a Vlookup table to correlate the years, into a base number, which is represented in the R column.

    term 1 of this year would need to have the value 2101
    term 2 of this year needs to have the value 2102
    term 3 of this year needs to have the value 2103
    etc.

    so, What I want to do is take the horizontal row, lets say row 2, and I want to say;

    IF there is a value in Column L, output = 1
    IF there is a value in Column M, output = 2
    IF there is a value in Column N, output = 3
    IF there is a value in Column O, output = 4
    IF there is a value in Column P, output = 5
    IF there is a value in Column Q, output = 6

    If I can make these compile into a column, then I can sum the base identifier for the year, with the value for the term, and I will have the number I need to correlate the grades in my database.

    I am sure there is a more graceful way to accomplish this, but I am trying to work through this so I "learn to fish" so to speak.

    Thanks
    Dave

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Data Aggregation formulation

    Hi

    Try this

    S2: =MAX(IF(LEN(L2:Q2)>0,COLUMN(L2:Q2)-11))

    This formula is array entered (ctrl, shift, enter).

    Copy down as required.

    rylo

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Data Aggregation formulation

    rylo, thanks for the help!

    it took me a bit to figure out what you meant by 'array entered' but once I did it worked perfectly.

    Thanks a ton!

+ 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