+ Reply to Thread
Results 1 to 11 of 11

Different possible combination using division formula function within a column

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Unhappy Different possible combination using division formula function within a column

    Hi,

    I have a question involving using the division formula. Attached is the picture of what I am trying to do.

    So basically, C , D, E, F are columns and the right side is what I want to do.

    So for person A, I want to do many possible divisions of the cells in that column. So as shown in the picture, the light blue means [All cell]/[first cell], and dark blue means [all cells]/[second cell] and continue on until the last cell in column E. Then from there, it will be inverse division e.g.[first cell]/[all cells], [second cell]/[all cells] and so on. So it is like doing all possible combination of division.

    So next column will be the same as the previous column, where you do all possible division in Column F.

    The problem here is, I have massive of data (thousands of values and Person ID), so it is impossible to do it manually as I have to keep changing the $ sign and letter, as well as dragging down all the way to the last cell which can be at Row 1000++ . Is there any other way to do it?

    I know a bit of VBA and vb.net, so if there is a formula to cater this...I greatly appreciate it!
    Attached Images Attached Images

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: Different possible combination using division formula function within a column

    Hello hellohello and welcome to the forum.

    If you arrange your data like the attached you can do a single formula and pull it over and down.

    Copy the data down a single column and then copy and paste using TRANSPOSE to get it across the top row.

    Then a single formula will work for the single person.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    01-21-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Different possible combination using division formula function within a column

    Hi Marvin,

    Thanks for the reply. I have tried that but I have too many person ID in order to do that, and I will need to arrange as how I arrange in my picture because I have to do additional steps of calculation from there like finding SD and CV across all person ID. And I am also looking into doing it automated since its repetitive tasks since I have many files as well. Is there other solution to it?

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,165

    Re: Different possible combination using division formula function within a column

    OK -

    Look at this with an Indirect formula. It might be another way to do your problem. If you have a lot of rows of data I'd suggest you do the problem like this... Attached.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Different possible combination using division formula function within a column

    Hi -

    You can start with this;
    Please Login or Register  to view this content.
    event

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Different possible combination using division formula function within a column

    Pl see attached file with formula in H8 ,dragged across.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-21-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Different possible combination using division formula function within a column

    Hi Marvin,

    Thanks. I have thought of that too...so far I think this is more ideal though it is harder to process for the next step. Thanks once again for your help

  8. #8
    Registered User
    Join Date
    01-21-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Different possible combination using division formula function within a column

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see attached file with formula in H8 ,dragged across.
    Please Login or Register  to view this content.
    I am unable to open your file though

    Quote Originally Posted by event21 View Post
    Hi -

    You can start with this;
    Please Login or Register  to view this content.
    event
    I couldn't run it. May I know how the code suppose to work(pardon my beginner knowledge in VBA)?

  9. #9
    Valued Forum Contributor
    Join Date
    11-15-2008
    Location
    ph
    MS-Off Ver
    2007/2010/2016
    Posts
    479

    Re: Different possible combination using division formula function within a column

    Hi -

    here is you wrote
    I know a bit of VBA and vb.net
    Hit Alt + F11, from the left side, right click and insert module then paste the code to the window that will open

    event

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Different possible combination using division formula function within a column

    Paste this in H8 and drag To I8 And downwards.
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    01-21-2014
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Different possible combination using division formula function within a column

    Quote Originally Posted by kvsrinivasamurthy View Post
    Paste this in H8 and drag To I8 And downwards.
    Please Login or Register  to view this content.
    Thanks! Will try it out!

    Quote Originally Posted by event21 View Post
    Hi -

    here is you wrote


    Hit Alt + F11, from the left side, right click and insert module then paste the code to the window that will open

    event
    My Bad...forgot to change the value. Oh wow. Awesome... Thanks everyone for your help!

+ 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. Replies: 4
    Last Post: 11-20-2013, 10:16 PM
  2. [SOLVED] Nested Function With Division - Receiving #VALUE! Function Error
    By DDM64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2013, 01:16 PM
  3. Division Function issue
    By Popone in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2012, 04:26 PM
  4. Incorrect division by zero when using DLL function
    By manik in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2007, 05:10 AM
  5. @if function to sort the product of division
    By jane_mcvey in forum Excel General
    Replies: 3
    Last Post: 10-04-2006, 08:46 AM

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