#value!

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,838
Office Version
  1. 2010
Platform
  1. Windows
Hello, my B2 is returning the value error if I look at Logical1 in the Formula Bar and press F9 I see #VALUE !,#VALUE !,10. If there anyway I can get B2 to return the 10 please?

Excel Workbook
ABC
2Apples 1 March 1918 2 left#VALUE !10
Sheet1
 
OK, try this: NOT quit working didn't pick up last digit in year.
Enter with CTRL-SHIFT-ENTER.


AB


Apples 1 March 1918 2 left
Number of words before date 12 February 1918 2 left
Test sample 24 January 1918 and some words at the end

<colgroup><col style="width:30px; "><col style="width:383px;"><col style="width:132px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] , align: right"]1 March 191[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]3[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] , align: right"]12 February 191[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]4[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] , align: right"]24 January 191[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]5[/TD]
[TD="align: right"]2 January 1918[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] , align: right"]2 January 1918[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]6[/TD]
[TD="align: right"]16 March 1918[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] , align: right"]16 March 191[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
B2{=TRIM(MID(MID(A2,MAX(IFERROR(SEARCH({"January","February","March"},A2),0)-3,1),LEN(A2)),1,FIND(CHAR(7),SUBSTITUTE(MID(A2,MAX(IFERROR(SEARCH({"January","February","March"},A2),0)-2),LEN(A2))," ",CHAR(7),2))+4))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
This seems to work now.
Enter with CTRL-SHIFT-ENTER.
Excel Workbook
AB
1
2Apples 1 March 1918 2 left1 March 1918
3Number of words before date 12 February 1918 2 left12 February 1918
4Test sample 24 January 1918 and some words at the end24 January 1918
52 January 19182 January 1918
616 March 191816 March 1918
Sheet
 
Upvote 0
Thanks for spending time trying to get this working Ahoy, I'm most grateful. Your formula is partially working here, I can't get a return for the cells with only a date in. I've tried changing the format of these cells but nothing so, what date format have you used pleased?
 
Upvote 0
In my example cells A5 and A6 were entered as text. Are your cells with just dates actual Excel dates (numeric)?
 
Upvote 0
No, always text in my workbook. When I pasted your example in to a different workbook they became numerical but, I've changed them to text now, thanks again/
 
Upvote 0
You're welcome. Hope you got everything working. I think Excel usually will try and enter a pasted value the looks like date as a numeric date which probably gave you a #VALUE error in my example.
Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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