Help with Formula

Rob0424

New Member
Joined
Jan 9, 2007
Messages
38
Office Version
  1. 2016
Can someone help me fix this formula:

=IF(LEN(D3)=14, 1+MAX(B$1:B2), "")

This formula is in cell B3, and is trying to create numbering sequence where it numbers the cells based on if the number of characters in the cells in Column D being 14 long. The characters in the cells in Column D are numbers but not actual numbers and should actually read as text.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
When is the formula giving you an incorrect result? Your question might make sense to you because you know what you are trying to do, but for anyone else it is unclear without some examples to compare the actual / incorrect and expected results.

If it is when there are decimal values in the cells that are rounded by formatting then you would need to use the round function in your formula to equal precision, e.g.
Excel Formula:
=IF(LEN(ROUND(D3,2))=14, 1+MAX(B$1:B2), "")
however, that may not work correctly for all numbers.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,742
Members
448,989
Latest member
mariah3

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