+ Reply to Thread
Results 1 to 7 of 7

Using a value from another cell as part of a formula

  1. #1
    Registered User
    Join Date
    11-14-2023
    Location
    Whiteley
    MS-Off Ver
    365
    Posts
    9

    Using a value from another cell as part of a formula

    HI All

    I am trying to edit part of a formula based on the value of another cell (sample sheet attached).

    The number in cell H2 refers to the vlookup on sheet 2 which returns a result in cell I2.

    This result from cell I2 should be put into the formula in cell I12 between { }

    Basically what I am trying to achieve is to be able to change the number of smallest values sums returned based on the number of dropped rounds.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,014

    Re: Using a value from another cell as part of a formula

    Try this in I12.

    =SUM(SMALL(A12:G12,TEXTSPLIT(I1,",")))

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Using a value from another cell as part of a formula

    Try this:

    =SUMPRODUCT((A12:G12<=SMALL(A12:G12,H1))*(A12:G12))

    or:

    =SUMPRODUCT(SMALL((A12,B12,C12,D12,E12,F12,G12),SEQUENCE(,H1,,1)))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    11-14-2023
    Location
    Whiteley
    MS-Off Ver
    365
    Posts
    9

    Re: Using a value from another cell as part of a formula

    I should have mentioned that in the actual sheet the A12:G12 are not contigous however i adjusted the formula for this and it still works so thanks very much.

    Edit - forgot to quote your post windknife. Worked great , thanks
    Last edited by nathp; 12-12-2023 at 12:25 PM. Reason: Missed quote

  5. #5
    Registered User
    Join Date
    11-14-2023
    Location
    Whiteley
    MS-Off Ver
    365
    Posts
    9

    Re: Using a value from another cell as part of a formula

    @AliGW

    This also worked perfectly thanks
    Last edited by AliGW; 12-12-2023 at 12:29 PM. Reason: Please do NOT quote unnecessarily! Use the QUICK REPLY button instead.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Using a value from another cell as part of a formula

    Thanks for the rep.

  7. #7
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,014

    Re: Using a value from another cell as part of a formula

    You are welcome.

+ 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] Formula to sum Credit part and debit part data in column
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2020, 03:43 PM
  2. Change the cell reference in formula to absolute for part of cell via sub routin
    By dorabajji in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-09-2019, 09:20 AM
  3. Replies: 3
    Last Post: 07-14-2016, 03:53 PM
  4. Formula to move part of a value to a new cell - part 2
    By forestavekids in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-28-2016, 12:34 PM
  5. Replies: 1
    Last Post: 03-06-2014, 07:14 PM
  6. How to use a cell value as part of a formula?
    By patrix in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 07:40 AM
  7. Replies: 1
    Last Post: 07-20-2006, 03:05 PM

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