Return the value at the lowest end of the row

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
110
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I have a row of data. However, I do not want to sum the whole row. I only want the result at the end of the row. In the examples below, if there are no data in Q2, Q3 & Q4, the total will return the value in Q1. However, if there are data in Q4, it will ignore the data above it (in Q1, Q2 & Q3). Any formula to do that?


Book1
ABCDEFGH
1
2Example 1Example 2Example 2
3Q1500Q1500Q1500
4Q2Q2200Q2200
5Q3Q3Q3
6Q4Q4Q4400
7Total500Total200Total400
8
Sheet1


Thanks,
Irene
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try this:

Book4
ABCDEFGH
1
2Example 1Example 2Example 2
3Q1500Q1500Q1500
4Q2Q2200Q2200
5Q3Q3Q3
6Q4Q4Q4400
7Total500Total200Total400
Sheet1
Cell Formulas
RangeFormula
B7,H7,E7B7=LOOKUP(2,1/(B3:B6<>""),B3:B6)
 
Upvote 0
Solution
Same idea, just a little short. The lookup value needs to be any number that is larger than what you would have in the column. In this case I used 150000.

Book1
ABCDEFGH
1
2Example 1Example 2Example 2
3Q1500Q1500Q1500
4Q2Q2200Q2200
5Q3Q3Q3
6Q4Q4Q4400
7Total500Total200Total400
Sheet4
Cell Formulas
RangeFormula
B7,H7,E7B7=LOOKUP(150000,B3:B6)
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,456
Members
452,514
Latest member
cjkelly15

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top