CSE Formula Required

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,486
I have below range of Text Values - I wish to have a formula in Cell B85 as follows emtered with CSE to produce({}):
to get result of: 190.51

={SUM(LEFT(B72:B84,FIND(" ",B72:B84,1)-1)+0)}

But I'm Getting #VALUE !

How do I need to Adjust above existing Formula?

<tbody>
</tbody>

Excel 2010
B
72 30.51 for Wk
73 40 for Wk
74 40 for Wk
75 40 for Wk
76 40 for Wk
77
78
79
80
81
82
83
84

<tbody>
</tbody>
Quick-Cash_Proj
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Remove the {} from your formula, they should not be entered manually.
The whilst in the formula bar press Ctrl Shift Enter & the {} should then appear
 
Upvote 0
When I entered the following into the empty cells, your formula using CSE delivers the value you were looking for :



A
B
70
71
72
30.51 for Wk
73
40 for Wk
74
40 for Wk
75
40 for Wk
76
40 for Wk
77
0 for Wk
78
0 for Wk
79
0 for Wk
80
0 for Wk
81
0 for Wk
82
0 for Wk
83
0 for Wk
84
0 for Wk
85
190.51​
 
Upvote 0
I understand what you are saying -- in my formula the {}'s were NOT entered manually.

It seems the problem with my formula is the Blank Cells in the Range B77:B84.
When I alter the Range to ONLY B72:B76 it Works. Still prefer to use full range B72:B84.

What must I do?

Thanks,
Jim
 
Upvote 0
I assumed that you had entered the braces manually as the first one is in the wrong place.
Try


Excel 2013/2016
B
130.51 for Wk
240 for Wk
340 for Wk
440 for Wk
540 for Wk
6
7
8
9
10
11
12
13
14
15
16
17
18
19190.51
Master
Cell Formulas
RangeFormula
B19{=SUM(IF(B1:B18<>"",LEFT(B1:B18,FIND(" ",B1:B18,1)-1)+0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
@ jim may:

Here is how to tweak your formula:

=SUM(LEFT(0&B72:B84,FIND(" ",0&B72:B84&" ",1)-1)+0)

Or even shorter:

=SUM(LEFT(0&B72:B84,FIND(" ",B72:B84&" ",1))+0)
 
Last edited:
Upvote 0
Fluff - thanks for the additionsl IF(B1:B18<>"",
Works a treat, as they say...

Jim
 
Upvote 0
You're welcome & thanks for the feedback.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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