+ Reply to Thread
Results 1 to 5 of 5

Assigning the same occurrence count to listed items that have been multiplied

  1. #1
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Assigning the same occurrence count to listed items that have been multiplied

    Hi,

    I have a list of items and a running count of the number of occurrences of each item in the list. I also have a formula that multiplies the number of occurrences of each item in the list with any given multiplier, so that the list expands accordingly.

    Now I need to modify the formula for counting the number of occurrences of each item so that each item that has been expanded by the given multiplier gets the same count number as it had before, for both the original occurrence and the extra occurrences that have been added as a result of the multiplier.

    The counting formula I use, which I'd like to be modified, is this one for the original list in range A2:A8:

    Please Login or Register  to view this content.
    Please see attached workbook. I have colored the cells to make the point clearer.

    Best regards,
    Marbleking

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Assigning the same occurrence count to listed items that have been multiplied

    Maybe try

    =INDEX($A$2:$B$8,SEQUENCE(ROWS(A2:A8)*H1,,,1/H1),{1,2})

  3. #3
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Assigning the same occurrence count to listed items that have been multiplied

    Thanks Bo_Ry,

    Is it possible to only make the formula dependent on the expanded item list in column D and with a reference to the multiplier in cell H1?

    Regards,
    Marbleking

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Assigning the same occurrence count to listed items that have been multiplied

    Then try

    =INT(MMULT((D2:D22=TRANSPOSE(D2:D22))*(ROW(D2:D22)>TRANSPOSE(ROW(D2:D22))),ROW(D2:D22)^0)/H1)+1

  5. #5
    Forum Contributor
    Join Date
    08-20-2011
    Location
    Oslo
    MS-Off Ver
    MS 365
    Posts
    245

    Re: Assigning the same occurrence count to listed items that have been multiplied

    Great, thanx!

    Regards,
    Marbleking

+ 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] calculate Sumproduct weighted average for the listed items
    By abdumon7 in forum Excel General
    Replies: 7
    Last Post: 04-16-2019, 06:22 AM
  2. [SOLVED] Ignore occurrence if already listed
    By DomSza in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2015, 08:11 AM
  3. [SOLVED] Non listed item to be counted in other items
    By skhari in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-21-2014, 02:08 PM
  4. Replies: 5
    Last Post: 08-23-2010, 07:05 AM
  5. Obtaining sum from multiple listed items
    By dainbram in forum Excel General
    Replies: 4
    Last Post: 09-08-2008, 06:50 PM
  6. [SOLVED] Query Items Listed During a Specific Time Period
    By DukeDevil in forum Excel General
    Replies: 0
    Last Post: 07-06-2006, 03:45 PM
  7. check occurrence of items in a range
    By Jack Sons in forum Excel General
    Replies: 3
    Last Post: 02-18-2005, 10:06 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