Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8405095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:45:49+00:00 2026-06-09T22:45:49+00:00

I have the following excel setup that is huge but here is a simplified

  • 0

I have the following excel setup that is huge but here is a simplified setup:

     A     B         C       D       E
   1 Site1 X-Given   Y-Given Site2   X-New-Given 
   2 A     10        400     A       15         
   3 A     20        500     A       25          
   4 A     30        600     A       30          
   5 A     40        700     B       35          
   6 A     50        800     B       30          
   7 B     2         400     B       15          
   8 B     25        500     B       25          
   9 B     300       600     B       30 

This is what I’m trying to do:

Given a value in “Column E” I want to find a value <= the value in “Column E” as long as they are at the same site

Then i would like to do the same thing only find the > value in “Column E”

So the desired formula would be two cells one with greater value, one with the less than value

Example 1: Given 15 (E2) ---> would return "10" (from B2) and "20" (from B3)
Example 2: Given 15 (E7) ---> would return "2" (from B7) and "25" (from B8)

As you can see the output would change depending on the site, which is the part I can’t seem to grasp!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:45:50+00:00Added an answer on June 9, 2026 at 10:45 pm

    These are array formulas that entered with Control+Shift+Enter, not just Enter. If you enter them correctly, Excel will put curly braces around them – don’t enter the braces yourself.

    Lesser

    {=MAX(($A$2:$A$9=D2)*($B$2:$B$9<=E2)*($B$2:$B$9))}
    

    Greater

    {=MIN(IF((($A$2:$A$9=D2)*($B$2:$B$9>=E2)*($B$2:$B$9))=0,"",$B$2:$B$9))}
    

    The lesser finds the largest value for the site that’s less than or equal to E2. The greater finds the smallest value for the site that’s greater than or equal to E2. Fill down to do the rest.

    Arrays in formulas return 0 for FALSE and 1 for TRUE, so the MIN would always return 0 as long as one of the rows was FALSE. That’s why you have to use the IF statement. By injecting a string for FALSE, it ignores them because MIN ignores strings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large reporting table in Excel that looks similar to the following.
I have the following routine that dumps a DataTable into an Excel worksheet. private
I have the following ado connection from excel to access but it does not
In Excel, I have the following formula =(MIN(H69,H52,H35,H18)*(1/H18))*10 that is supposed to return the
I have the following requirement in Excel but now sure the formula I need
I am have the following code for excel vba that will email a range
I have the following situation: excel-like application, that is accessible from internet. 2 users
I have the following Excel worksheet: | A B C -+--------------- 1|id date views
I have following data in excel table r1 r2 r3 r4 r5 v1 v2
I have the following function using Excel 2010: Private Function MakeAllSheetsValuesOnly(targetBookName As String) If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.