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

  • SEARCH
  • Home
  • 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 8375863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:17:09+00:00 2026-06-09T15:17:09+00:00

Here is a table that I’m working with (an ascii art representation fo it):

  • 0

Here is a table that I’m working with (an ascii art representation fo it):

|---|---------|-----------|--
|   |A        |B          |
|---|---------------------|--
|1  |price    |override   |
|---|---------|-----------|--
|2  |10       |           |
|---|---------|-----------|--
|3  |20       |100        |
|---|---------|-----------|--
|4  |30       |           |
|---|---------|-----------|--
|5  |40       |90         |
|---|---------|-----------|--
|6  |50       |           |
|---|---------|-----------|--
|7  |150      |280        | <-- SUMS
|---|---------|-----------|--
|   |         |           |

column A has some prices, column B has an override price, if any.
Rows 1 to 6 have the prices, and row 7 has sums.

Row 7 is calculated as “=SUM(A1:A7)”

I want to write a formula for cell B7 that will do the following:

for every cell in range A1:A7
    if the override field for that price is blank
        add the original price to the total
    else
        add the override price to the total

My question: what formula will do the above?

I’ve looked at IF (cant figure out how to apply it on a range) and SUMIF(can’t figure out how to get the “current cell” and “relative cell”), but I can’t think of a way to do this. I’m a total novice at excel formulae.

  • 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-09T15:17:10+00:00Added an answer on June 9, 2026 at 3:17 pm

    How about trying an array formula? In cell B7, try adding this:

    =SUM(IF(ISBLANK(B2:B7), A2:A7, B2:B7))
    

    And then pressing Ctrl+Shift+Enter to enter as an array formula. This will check if there is a value in column B and use it in the sum; otherwise, it will use the value in column A.

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

Sidebar

Related Questions

Here's the caveat... If you have a table that has a single column and
I have a Product table that has a column OrderStatusID . Here's an example
Here's the table that I'm working with: CREATE TABLE `index` ( `wid` int(7) unsigned
Here's a Item table that stores basic item information like name, price, color etc.
Bit of a newbie here. I'm currently working on a MySQL table that lists
Here is my situation: I have one table that contains a list of drugs
Here is the problem: I have two columns in a table that, for each
I'm seeing basically the same issue described here I have a table that starts
so here's what's going on. I have a table that is created in code-behind
Ok, here's a query that I am running right now on a table that

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.