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 8295615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:40:15+00:00 2026-06-08T14:40:15+00:00

So I have a chart that looks something like this. Assume that the top

  • 0

So I have a chart that looks something like this. Assume that the top left value, 1, is in cell A1:

x=    1    2    3    4    5    6    7    8

      4    3    2    1    2    3    4    5

      9    8    7    6    7    8    9    10

      8    7    6    5    4    3    2    1

Sum= 21   18   15   12   13   14   15    16

There are x values from 1 to 8, and a three columns of values resulting from using it an equation or something below it. The sum is the sum of the three values below their corresponding x-value.

I’m stuck trying to figure something out that will go through the row of sums, find the smallest value, and then assign it’s corresponding x-value to a variable. I also need to assign the values to the left and right of that x-value to other variables.

For this particular chart, 12 is the smallest of the sums, so I would assign variable1 = 4, since that is that column’s corresponding x-value. Then my second variable, which is called lowerbound, would equal 3, since it is to the left of x = 4, and my third variable, which is called upperbound, would equal 5, since it is to the right of x = 4.

If I could get the cell address returned of the x-value that corresponds to the smallest sum, then I could assign it to a variable, and then simply offset from that cell to assign the other variables. Even if I could make a program that will return me the cell of the minimum sum value, I could offset to the x-row, and go from there.

How would I do something like that?

TL:DR: To ask more clearly, since that’s a lot of words: What would a program look like that detects the smallest value in the sum row, and returns the cell address of that value?

The length of the rows are an unknown, and vary a lot, but the length of the columns are given. They do change depending on the problem, but they will always be known. So I will always know how many rows are in a column, but I will not know how many columns are in a row.

This is the most confusingly-worded thing I’ve ever written in my entire life, but I hope I’ve explained it well enough to make some sense.

You guys really are amazing, by the way. I’ve gotten so far on this program, and it’s all because of how helpful you are. I honestly think I would still be stuck at the beginning with you guys! You’re willing to tolerate a newbie’s incessant questions.

  • 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-08T14:40:17+00:00Added an answer on June 8, 2026 at 2:40 pm

    I am assuming that the sum is in A4:H4. Please change as applicable

    You can use a formula like

    =CELL("address",INDEX(A4:H4,MATCH(MIN(A4:H4),A4:H4,0)))
    

    If you want to use VBA then you can use this

    Sub Sample()
        MsgBox Application.Evaluate("=CELL(""address"",INDEX(A4:H4,MATCH(MIN(A4:H4),A4:H4,0)))")
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string that looks something like this: {{imagename.jpg|left|The caption for this image.
I have data that always looks something like this: alt text http://michaelfogleman.com/static/images/chart.png I need
I have a loop that looks something like this while(condition){ read_some_data(source, buf, BUFSIZE); printf(buf);
Have a class definition that looks something like this class someClass(models.Model): field1 = models.ForeignKey('other_app.field4')
I have a thread function that looks something like this: DWORD WINAPI Thread_ProcessFile( LPVOID
I have some code in my application that looks something like this: char *hash
So I have a base table that looks something like this. SELECT [BILL_MONTH] ,[BILL_YEAR]
I have a txt file that looks something like this ----------------------------------- RUNNING PROCESSES -----------------------------------
I have code that looks something like, #include<stdlib.h> #include<string.h> char** someArray = NULL; size_t
I have a class User that looks like this: class User { private: char*

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.