+ Reply to Thread
Results 1 to 4 of 4

Formula to return result based on multiple double criteria

  1. #1
    Registered User
    Join Date
    07-10-2021
    Location
    London
    MS-Off Ver
    not sure
    Posts
    1

    Formula to return result based on multiple double criteria

    if 2<a2<3 return 10
    if 4<a2<5 return 10*a2
    else return 0
    Last edited by AliGW; 07-10-2021 at 08:37 AM.

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,368

    Re: Help needed to write this function

    Your title is poor - I'll deal with that in a moment.

    Try this:

    =IF(AND(A2>2,A2<3),10,IF(AND(A2>4,A2<5),10*A2,0))

    PLEASE find out what your Office version is and update your profile.
    Last edited by AliGW; 07-11-2021 at 07:37 AM. Reason: Missing AND added
    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.

  3. #3
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,278

    Re: Formula to return result based on multiple double criteria

    AliGW Jour formula error
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,368

    Re: Formula to return result based on multiple double criteria

    Well spotted! I've corrected it, thanks. I shouldn't worry, though - the OP has never been back.

+ 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. Save a (binary) file as string in code and write to disk when needed.
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2019, 08:54 AM
  2. [SOLVED] Help needed to write a formula with a WORKDAY and IF function.
    By Tina G in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2015, 12:52 PM
  3. [SOLVED] help needed to write a vlookup, match or combination of both formula
    By spittingfire in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-31-2015, 09:31 AM
  4. Excel 2007 : Help needed to write a subtraction formula
    By fxtrader in forum Excel General
    Replies: 12
    Last Post: 09-13-2011, 07:14 AM
  5. Help Needed to Write Macro to Enter user id, pwd in web page
    By Harshini in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2011, 03:15 AM
  6. Replies: 0
    Last Post: 02-15-2006, 12:45 PM

Tags for this Thread

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