+ Reply to Thread
Results 1 to 9 of 9

Get the nearest value

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    sri lanka
    MS-Off Ver
    Excel 2010
    Posts
    9

    Cool Get the nearest value

    Hai!
    i am new to this
    pls help me following problem

    i am having a table with Month wise average price of each item
    i take the average price of each item for a given month using look up function.
    But sometime some month for some item the average price is zero.
    so that i need to get the next available month average price of that item if it is zero for the given month.
    I am struggling with doing this..

    pls help..
    tks
    dushantha.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Get the nearest value

    Can you upload example workbook?

    Make sure to remove all private data

  3. #3
    Registered User
    Join Date
    05-30-2012
    Location
    sri lanka
    MS-Off Ver
    Excel 2010
    Posts
    9

    Angry Re: Get the nearest value

    Hai

    i have uploaded a sample sheet. pls look in this and help me to solve.
    tks,
    Dushantha
    Attached Files Attached Files

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Get the nearest value

    Can you also insert your expected result?

    Declare what are inputs and what is result.

  5. #5
    Registered User
    Join Date
    05-30-2012
    Location
    sri lanka
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Get the nearest value

    Quote Originally Posted by zbor View Post
    Can you also insert your expected result?

    Declare what are inputs and what is result.
    I THINK YOU DIDN'T UNDERSTAND.
    What i need is:
    I have a sheet that contain consumption average prices of item.
    some month if not consumption is not there then the average price become zero.
    So i need to get the given item average price.
    sO.IF A given month average price is zero then i need to get the next available month's average price instead of that.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Get the nearest value

    This one give you the result of the exact match.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Get the nearest value

    Hi Dushantha,

    See the attached. Is this do you mean?
    Attached Files Attached Files
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  8. #8
    Registered User
    Join Date
    05-30-2012
    Location
    sri lanka
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Get the nearest value

    Tks lot.excellent. That was i needed.
    Tks so.much

  9. #9
    Registered User
    Join Date
    05-30-2012
    Location
    sri lanka
    MS-Off Ver
    Excel 2010
    Posts
    9

    Cool Re: Get the nearest value

    Quote Originally Posted by Dushantha View Post
    Tks lot.excellent. That was i needed.
    Tks so.much
    Dear Haseeb,

    My problem was solved. But i am bothering about the what u did there. I know these formula separately.
    But i could not understand the what u did there.
    Can you kindly give the [B]argument you used here.
    I THINK IT WILL HELP TO OTHER ALSO.

    pls.
    regard,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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