+ Reply to Thread
Results 1 to 7 of 7

What's wrong with the formula

Hybrid View

  1. #1
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    What's wrong with the formula

    Hello, Good Day,

    Attached is the sheet for a small table of different dates, having some errors, please rectify


    Thanks
    Attached Files Attached Files
    Last edited by shanis; 09-23-2024 at 06:06 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,991

    Re: What's wrong with the formula

    When asking a question like this, please tell us what you are trying to do. Are you trying to return the name of the month containing the current date?

    Your formula is more complicated than necessary:

    Formula: copy to clipboard
    =XLOOKUP(L4,$I$4:$I$15,$H$4:$H$15,,-1)
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Re: What's wrong with the formula

    HELLO SIR,

    In the new sheet (xlookup), the formula is stuck on one month, changing the dates in the 'current date' cell is not affect any change in the formula cell.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,015

    Re: What's wrong with the formula

    Exactly as Jeff said:

    =XLOOKUP(L4,I4:I15,H4:H15,,-1)
    Attached Files Attached Files
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,998

    Re: What's wrong with the formula

    May be

    Formula: copy to clipboard
    =FILTER(H4:H15,(I4:I15<=L4)*(J4:J15>=L4))
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Registered User
    Join Date
    08-25-2017
    Location
    Sialkot Pakistan
    MS-Off Ver
    Office 365
    Posts
    55

    Re: What's wrong with the formula

    Thanks All For your cooperation.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,015

    Re: What's wrong with the formula

    Glad to have helped.

    If you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered 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: 7
    Last Post: 05-10-2024, 07:14 AM
  2. Formula showing wrong result formula not working perfectly
    By keshavtale in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 11-18-2023, 12:46 PM
  3. Excel graph pulling wrong values for the wrong date
    By poetstorm in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 09-06-2023, 12:17 PM
  4. [SOLVED] is IF formula wrong here? or what am i doing wrong?
    By Sephre in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-22-2020, 02:19 PM
  5. What is wrong with this short formula ? (conditional formula)
    By Leo=123 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 10-01-2019, 06:53 AM
  6. [SOLVED] Macro exporting and saving the wrong page with wrong name
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2018, 01:24 PM
  7. [SOLVED] Wrong formula or wrong function?
    By cpope in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2017, 10:27 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