+ Reply to Thread
Results 1 to 5 of 5

Probably SUMPRODUCT (across sheets) but confused due to complexity...

Hybrid View

  1. #1
    Registered User
    Join Date
    11-23-2013
    Location
    Washington DC
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Probably SUMPRODUCT (across sheets) but confused due to complexity...

    Thanks for such a quick reply. I saw that you converted from multiple entries per cell (the serials) to single entries. One, how did you do that? Two, The chart containing the grades and serials has many other fields, like report author, title, and text. If I did what you suggest, I think I'd have duplicates of those other cells. I'll have to think of the implications of that. Maybe I'm creating an intermediary sheet to manipulate, in which case, it would work.

    At any rate, I hadn't thought of your solution. I'm not near the live sheet-- snow day. In the meantime, if you could tell me how you got the result in the modified sheet, I'd appreciate it.

    As an aside, it's annoying to have more than one value in a cell, but the way the data comes off of the run it's unavoidable without disturbing the other cells. Thanks again for your help. Cheers!

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,298

    Re: Probably SUMPRODUCT (across sheets) but confused due to complexity...

    Quote Originally Posted by jimbosi View Post
    I saw that you converted from multiple entries per cell (the serials) to single entries. One, how did you do that?
    I use a macro:

    Sub SplitOutValues()
    Dim lngR As Long
    Dim V As Variant
    Dim i As Integer
    
    For lngR = Cells(Rows.Count, "A").End(xlUp).Row To 3 Step -1
    V = Split(Cells(lngR, "A").Value, ",")
    If UBound(V) <> 0 Then
    Cells(lngR, "A").Resize(1, 3).Copy
    Cells(lngR, "A").Offset(1).Resize(UBound(V), 3).Insert shift:=xlDown
    For i = 0 To UBound(V)
    Cells(lngR, "A").Offset(i).Value = Trim(V(i))
    Next i
    End If
    Next lngR
    End Sub

    Two, The chart containing the grades and serials has many other fields, like report author, title, and text....if you could tell me how you got the result in the modified sheet.
    I used a Pivot Table, and you just select the fields of interest - you can have as many extra columns of data as you like, and they are ignored until you use them.


    As an aside, it's annoying to have more than one value in a cell, but the way the data comes off of the run it's unavoidable without disturbing the other cells. Thanks again for your help. Cheers!
    The macro was written to act on column A to C of the active sheet - if you have more information that needs to be replicated when the cells are split, change the 3 in the Resize method to the number of columns needed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Confused, SUMPRODUCT or SUMIFS to compare 2 dates in a row
    By coasterman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-29-2013, 03:15 PM
  2. Replies: 1
    Last Post: 10-03-2012, 10:32 PM
  3. [SOLVED] Macro executes but not giving results :confused::confused::confused:
    By Ganesh7299 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 10:49 AM
  4. Confused.com... Sumproduct or Sumif???
    By Ho-hum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2011, 05:31 PM
  5. Complexity to far for graphs?
    By garyi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2011, 05:19 AM

Tags for this Thread

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