formula

abbyabby

New Member
Joined
May 28, 2023
Messages
16
Office Version
  1. 365
Hello. I am trying to find a formula that looks at a column of figures with intermittent blank cells that can return the value of the cell above the blank cell. This formula gives me the oldest charged price for a customer

=IF(D2="",D3,"")

But I also need to be able to pull the value in the last cell before the blank cell that divides each customer's stats up occurs in each column

The annual sales are calculated using this formula which adjusts itself as it goes down the column, something like that but only getting the last blank cell's value?
=IF(F2="",SUM(F2:INDEX(F2:$F$74,MATCH(TRUE,(F3:$F$74=""),0))),"")
 

Attachments

  • sample.jpg
    sample.jpg
    128.1 KB · Views: 11
Last edited by a moderator:
If you have to use Ctrl+Shift+Enter then it indicates that you are not using Office 365 as shown in your profile. In 365, Ctrl+Shift+Enter is never required. Perhaps you need to edit your account details to include the correct version(s) that you are using?
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
If you have to use Ctrl+Shift+Enter then it indicates that you are not using Office 365 as shown in your profile. In 365, Ctrl+Shift+Enter is never required. Perhaps you need to edit your account details to include the correct version(s) that you are using?
I'm sorry, I'm new to this forum and I didn't set my profile to say that, it must be a defalt setting. I'm updating my app to 365 and hopefully this will fix it It never did that prior to downloading the add-in so I assumed it was something to do with a setting in that.

Thank you for trying to help me.
 
Upvote 0
I'm sorry, I'm new to this forum and I didn't set my profile to say that, it must be a defalt setting.
No, the default is to leave all the versions blank so you must have inadvertently checked 365 when setting up your account. 😎

I'm updating my app to 365
You can do that if you want, but, assuming the results in my previous formula are what you want, you can do this without 365 and without Ctrl+Shift+Enter.

23 08 14.xlsm
FGH
1AmountOriginal Price2022 price rise
22.5117.5
3100  
475  
592.5  
650  
787.5  
8125  
992.5  
10150  
11125  
12112.5  
1380  
1487.5  
15107.5  
16125  
1777.5  
18117.5  
19279.8
20100  
2194.5  
2284  
2356.7  
24-2.1  
2594.5  
2658.8  
2784  
2884  
2984  
30121.8  
31126  
32105  
3379.8  
342126
35200  
36220.5  
37126  
38-42  
39252  
4063  
41210  
42210  
43126  
44210  
45130.2  
4642  
47126  
Lookup
Cell Formulas
RangeFormula
G2:G47G2=IF(D2="",D3,"")
H2:H47H2=IF(G2="","",INDEX(F:F,AGGREGATE(15,6,ROW(F3:F$1000)/(G3:G$1000<>""),1)-1))
 
Upvote 1
Solution
No, the default is to leave all the versions blank so you must have inadvertently checked 365 when setting up your account. 😎


You can do that if you want, but, assuming the results in my previous formula are what you want, you can do this without 365 and without Ctrl+Shift+Enter.

23 08 14.xlsm
FGH
1AmountOriginal Price2022 price rise
22.5117.5
3100  
475  
592.5  
650  
787.5  
8125  
992.5  
10150  
11125  
12112.5  
1380  
1487.5  
15107.5  
16125  
1777.5  
18117.5  
19279.8
20100  
2194.5  
2284  
2356.7  
24-2.1  
2594.5  
2658.8  
2784  
2884  
2984  
30121.8  
31126  
32105  
3379.8  
342126
35200  
36220.5  
37126  
38-42  
39252  
4063  
41210  
42210  
43126  
44210  
45130.2  
4642  
47126  
Lookup
Cell Formulas
RangeFormula
G2:G47G2=IF(D2="",D3,"")
H2:H47H2=IF(G2="","",INDEX(F:F,AGGREGATE(15,6,ROW(F3:F$1000)/(G3:G$1000<>""),1)-1))
I have 365 on my computer but somehow managed to create a 2010 file... This works now, perfectly in fact, and thank you so very much you are amazing
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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