+ Reply to Thread
Results 1 to 10 of 10

Adjust values below with specific value

  1. #1
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Adjust values below with specific value

    Hi

    Please see attached sheet, and solve that.

    Please post formula as early as possible
    Attached Files Attached Files
    Last edited by rajeshn_in; 04-06-2016 at 08:21 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Adjust values below with specific value

    It's really not clear how you're determining the Adjusted WT. You need to provide a better explanation of how you determine the Adjusted WT for each of the items. For example, S.NO. 2 is 22.67 and S.NO. 5 is 24.56 but they both have the same Adjusted WT of 23.65. Why is that the case? We will need better explanations for each item.

  3. #3
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Adjust values below with specific value

    I try to put that value below 23.7, because 23.7 is my first choice,

    but you can use any choice and put formula, no need to follow my manual values

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Adjust values below with specific value

    I'm no mathematician but this is one method

    in cells G2 to G5

    =IF(ABS(F2-$J$2)<ABS(F2-$J$3),$J$2,$J$3)

    in G6 =F7 -SUM(G2:G5)

    How did you calculate your manual results?

    I am sure the mathematicians in the Excel fraternity will find a suitable formula.

  5. #5
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Adjust values below with specific value

    23.7
    23.7
    27.7
    27.7
    23.070
    125.870

    Thanks for you reply,
    But displaying same value like 23.7 or 27.7.
    I want different values,
    This is transport container values, each container have separate value. So need to manage different values but below 23.7 or 27.7

  6. #6
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Adjust values below with specific value

    The problem is that Excel is just like any other program in the sense that it only does what you tell it to do. You haven't provided any rules for determining the Adjusted WT other than your preference that the Adjusted WTs be under 23.7 or 27.7. If you can't provide any rules, then the numbers you're picking are just arbitrary. We can't come up with a formula for that.

  7. #7
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Adjust values below with specific value

    main aim here is to reduce or increase weight between 23.5 to 23.65 ...
    we need to adjust extra weight in other cells which has weight less than 27.7 ...please provide any formula for this
    Attached Files Attached Files
    Last edited by rajeshn_in; 04-06-2016 at 09:28 AM.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Adjust values below with specific value

    As stated previously, there are no obvious rules other than "trial and error". The formula below illustrates this - there no pre-defined rule(s)

    in G2:G5

    =IF(ABS(F2-23.7)<ABS(F2-27.7),23+RANDBETWEEN(5,10)/10,27-RANDBETWEEN(1,5)/10)



    G6 =F7-SUM(G2:G5)

  9. #9
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Adjust values below with specific value

    Finally I got below result with some changes in fourmula :

    =IF(ABS(F3-23.7)<ABS(F3-27.7),23.05+RANDBETWEEN(4.1,6.6)/10,27.45+RANDBETWEEN(1,2)/10)

    23.650
    23.550
    23.650
    23.550
    27.650

    in above values last 3 digits continuously coming like 550, 650. can I get different values like 520, 540, 560, 620, 670, 630, between 450 to 690.

  10. #10
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Adjust values below with specific value

    Please ignore above replay

    I had some changes in formula as
    =IF(ABS(F3-23.7)<ABS(F3-27.7),23.05+RANDBETWEEN(4.1,6.6)/10,27.45+RANDBETWEEN(1,2)/10)

    But values came as below
    23.650
    23.550
    23.650
    23.550
    27.650
    27.650
    23.650
    27.550
    23.650
    27.550
    27.650
    23.550
    23.550
    27.650
    27.650

    (I little bit extend that statement, please see attachment)
    in above values last 3 digits continuously coming like 550, 650. can I get different values like 480, 530, 660, 450, 500, 620, 670, 630 like that, between 480 to 690. with zigzag order.
    Attached Files Attached Files

+ 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. Adjust values below specific value
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-06-2016, 09:11 AM
  2. [SOLVED] Adjust column width when specific cell value changes.
    By JO505 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2015, 03:14 PM
  3. Auto- adjust cells to always add to a specific number/quantity
    By exelbeginner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2015, 07:24 AM
  4. [SOLVED] Auto height adjust to a specific column only
    By alfgrey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2014, 08:32 AM
  5. [SOLVED] Auto adjust sheets to specific range selection
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2014, 02:31 AM
  6. [SOLVED] Macro to copy specific entries and adjust value based on a table
    By Seraph122 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-24-2012, 11:03 PM
  7. Using Code to Adjust Specific Column Width
    By Nigel Bennett in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-09-2005, 03:06 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