Last entry ignoring formulae

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
230
Office Version
  1. 2021
Platform
  1. Windows
I have Formulae in Column "BF" which returns the last entry in each section.
EG: "BF106" 23.24 from range "BF107:BF110".
I am trying to achieve the same action for Column "BG"
EG: "BG82" 23.24 from range "BF83:BF86".
However due to there being Formulae in the sections the same Formula does not work.
Any assistance greatly appreciated.
01 REGISTER holding co.xlsx
BFBG
8200.0000.00
8300.00
8400.00
8523.24
8600.00
87
8800.000.00
93
9400.000.00
99
10000.000.00
105
10623.240.00
10723.2400.00
10800.00
10900.00
11000.00
111
Primary Entry (2)
Cell Formulas
RangeFormula
BF106:BG106,BF100:BG100,BF94:BG94,BF88:BG88,BF82:BG82BF82=IFERROR(INDEX(BF83:BF86,MATCH(1E+100,BF83:BF86,1),1),0)
BG83:BG86,BG108:BG110BG83=IF('[02 REG CHR securities.xlsx]Securities Acquired Divested'!BR83>0,'[02 REG CHR securities.xlsx]Securities Acquired Divested'!$CS$50&"."&'[02 REG CHR securities.xlsx]Securities Acquired Divested'!$CS$52,0)
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
A bit simpler for col BF
Excel Formula:
=IFNA(LOOKUP(9^9,BF83:BF86),0)

For BG try
Excel Formula:
=LOOKUP(9^9,FILTER(BG83:BG86,BG83:BG86>0,0))
 
Upvote 0
Solution
Mini sheet as requested.
01 REGISTER holding co.xlsx
BG
82#N/A
8300.00
8400.00
8523.24
8600.00
Primary Entry (2)
Cell Formulas
RangeFormula
BG82BG82=LOOKUP(9^9,FILTER(BG83:BG86,BG83:BG86>0,0))
BG83:BG86BG83=IF('[02 REG CHR securities.xlsx]Securities Acquired Divested'!BR83>0,'[02 REG CHR securities.xlsx]Securities Acquired Divested'!$CS$50&"."&'[02 REG CHR securities.xlsx]Securities Acquired Divested'!$CS$52,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
BG82Expression=$H82="S"textYES
BG82Expression=$H82="T"textYES
BG82Expression=$H82="F"textYES
BG82Cell Value>0textYES
 
Upvote 0
Thanks. The error indicates (& I should have seen it in your longer formula but did not have the relevant workbooks/worksheets to actually test) that your formulas in BG83:BG86 are returning text values not numbers.

I would suggest changing those formulas so that they do return actual numbers. The formula in BG83 would be changed like this

Remove the red "&" where shown:
=IF('[02 REG CHR securities.xlsx]Securities Acquired Divested'!BR83>0,'[02 REG CHR securities.xlsx]Securities Acquired Divested'!$CS$50&"."&'[02 REG CHR securities.xlsx]Securities Acquired Divested'!$CS$52,0)

Add the blue "+" and pair of parentheses:
=IF('[02 REG CHR securities.xlsx]Securities Acquired Divested'!BR83>0,'[02 REG CHR securities.xlsx]Securities Acquired Divested'!$CS$50+("."&'[02 REG CHR securities.xlsx]Securities Acquired Divested'!$CS$52),0)
 
Upvote 0
Thanks so much, that did the trick.
Really appreciate your expertise and attention to detail.
Cheers.
 
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