+ Reply to Thread
Results 1 to 6 of 6

Negative Value should be Positive Value when Automatic Range define

  1. #1
    Forum Contributor
    Join Date
    05-30-2023
    Location
    INDIA
    MS-Off Ver
    OFFICE 2016 ver 16
    Posts
    104

    Negative Value should be Positive Value when Automatic Range define

    Dear sir / Madam

    If A5 column change the value than Range also be changed based on A5 Value and Average Value to be mention in B5 Column
    For Example A5 Column Shows 18800 than Range to be select as Column B29 to B52 and answerd should be 91.25
    If A5 column Shows 18600 than Range to be select as Column B25 to B52 and answered should be 92.32
    Negative and Zero Values in Product Value column should be consider as Positive Value

    Note Negative value should be calculate with Positive value When Range found any Negative Value (in our sheet B36 shows -80 value. when calculation done it's should be consider as positive 80

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,504

    Re: Negative Value should be Positive Value when Automatic Range define

    right now in your workbook the value in A5 is 18700, not 18800 or 18600. Your post does not say what to do with that value.
    What are the different numbers that can be in A5 and do they affect the ranges for averaging in column B? And under what circumstances are you wanting negative values treated as positive values?
    Right now this sounds like you might want but I really doubt it. We need to be able to understand more.
    =IF(A5=18800,AVERAGE(B25:B52),IF(A5=18600,AVERAGE(ABS(B29:B52)),""))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    05-30-2023
    Location
    INDIA
    MS-Off Ver
    OFFICE 2016 ver 16
    Posts
    104

    Re: Negative Value should be Positive Value when Automatic Range define

    Sir ! I want that when the average sum is calculated based on the criteria mentioned in column A5 (in our example 18700), then the summation formula has to count all the negative value as a positive value in comparison.
    ( in our example the Average summation from B 27:B 52 will be 90.57 although there is negative value in coloumn B:36 i.e. -80) The average summation function will have to calculate the average in positive Value if there is negative value in Range)

  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,366

    Re: Negative Value should be Positive Value when Automatic Range define

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    enter with CSE
    Last edited by JohnTopley; 07-02-2023 at 08:54 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Forum Contributor
    Join Date
    05-30-2023
    Location
    INDIA
    MS-Off Ver
    OFFICE 2016 ver 16
    Posts
    104

    Re: Negative Value should be Positive Value when Automatic Range define

    Dear Sir

    Exact Answer as per Requirement Thank you Very much

  6. #6
    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,366

    Re: Negative Value should be Positive Value when Automatic Range define

    You're welcome and thank you for the rep.

+ 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: 03-05-2023, 01:13 PM
  2. [SOLVED] IF(AND(OR fx with positive and negative number range
    By brose99 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-29-2019, 03:07 AM
  3. Macro to delete negative value and same positive value in a range
    By subrato312 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2017, 02:59 AM
  4. Scroll Bar - negative to positive range?
    By tlapointe1970 in forum Excel General
    Replies: 1
    Last Post: 04-27-2011, 11:04 PM
  5. Convert negative to positive in sheet containing both positive/negative numbers
    By sa02000 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-29-2010, 07:52 PM
  6. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  7. Replies: 2
    Last Post: 11-13-2008, 12:35 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