highlights data if not in 1 decimal

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
958
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team

I have huge data and in the below data some of the data don't have decimals (6.0 refer to cell B14) and the same for others so i wanted to highlight if the data are not in 1 decimal

can anyone help me on this if

Book1
ABCDGHIJ
255-4.252-0.14353410.3
344-5.5380.2286.8254.4
451-2.2500.1423.42711.9 r
548-2.8402370.1322.7
6382.1344.142-6.9229.4
7377.0 r433.1377.4299.2
854-1.2530.654-2.23012.7 r
9279.0 p287.7 p47-14.0 q258.5
10348.3 p412.3361.3305.7
11169.1 p231.6149.4 r1011.5
1255-1.1473.6345.6361.2
13289.4 p276.7 p179.3 r1313.2
14406375.140-4.3340
Sheet4
 
Okay. Since it is hard for us to know what you want, can you do this:
Please format the entire section as number with at least one decimal place.
Then use this conditional formula is B2, then copy format all through the subject columns.
SQL:
=IF(ISTEXT(B14),ISNUMBER(FIND(".",B14)),FALSE)
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Okay. Since it is hard for us to know what you want, can you do this:
Please format the entire section as number with at least one decimal place.
Then use this conditional formula is B2, then copy format all through the subject columns.
SQL:
=IF(ISTEXT(B14),ISNUMBER(FIND(".",B14)),FALSE)
that gets the p's and r's as well. im fine tuning. bear with me.
 
Upvote 0
Are you concerned about the numeric format of the number 6? or that the 6 is text? and do you want it converted to a text string?
those are numbers and i wanted to highlight the number if it doest have 6.0
 
Upvote 0
Are you values really entered as numbers, or are they entered as text?
If you aren't sure, find any blank cell and enter this formula:
Excel Formula:
=ISNUMBER(B14)
Does that return True or False?

Note I see you have some entries like "9.4 p".
Are those text entries, or numeric with custom formats?
value are in the numbers not in text :)
 
Upvote 0
So, you are asking to see if the cell is formatted with decimal? I"d don't think you can conditionally format based upon cell formatting.

What happens when you format the cell as NUMBER with 1 decimal?

Or are you looking to ensure you've entered a decimal and the 1st number to the right? There is no way I know of to look for a zero in the tenths position when there are no significant digits further to the right.

Help us with your ultimate objective? You say you copy from a PDF, are you just trying to standardize the appearance of the column?
 
Upvote 0
So, you are asking to see if the cell is formatted with decimal? I"d don't think you can conditionally format based upon cell formatting.

What happens when you format the cell as NUMBER with 1 decimal?

Or are you looking to ensure you've entered a decimal and the 1st number to the right? There is no way I know of to look for a zero in the tenths position when there are no significant digits further to the right.

Help us with your ultimate objective? You say you copy from a PDF, are you just trying to standardize the appearance of the column?

Hi Sir,

I have copied it from Powerpoint (PPT) can we have a macro for this ? :)
For now i need to check manually for each number
 
Upvote 0
This will give you all numbers that have no fractional portion.
Excel Formula:
=IF(ISNUMBER(B14),IF(MOD(B14,1)=0,TRUE,FALSE),FALSE)
 
Upvote 0
Mr Excel 10.xlsm
ABCDEFGHIJ
1
255-4.252-0.14353410.3
344-5.5380.2286.8254.4
451-2.2500.1423.42711.9 r
548-2.8402370.1322.7
6382.1344.142-6.9229.4
7377.0 r433.1377.4299.2
854-1.2530.654-2.23012.7 r
9279.0 p287.7 p47-14.0 q258.5
10348.3 p412.3361.3305.7
11169.1 p231.6149.4 r1011.5
1255-1.1473.6345.6361.2
13289.4 p276.7 p179.3 r1313.2
14406375.140-4.3340
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J2:J14Expression=IF(ISNUMBER(J2),IF(MOD(J2,1)=0,TRUE,FALSE),FALSE)textNO
H2:H14Expression=IF(ISNUMBER(H2),IF(MOD(H2,1)=0,TRUE,FALSE),FALSE)textNO
D2:D14Expression=IF(ISNUMBER(D2),IF(MOD(D2,1)=0,TRUE,FALSE),FALSE)textNO
B2:B14Expression=IF(ISNUMBER(B2),IF(MOD(B2,1)=0,TRUE,FALSE),FALSE)textNO
 
Upvote 0
Hi Sir,

I have copied it from Powerpoint (PPT) can we have a macro for this ? :)
For now i need to check manually for each number
You still have not answered what is the objective? What are you going to do with the cell once you have it highlighted? If you are just going to type ".0" after it, I have already suggested you can do that by formatting as number with one decimal place. And you haven't said what is the current formatting of the column? is it general, numeric, or text?
 
Upvote 0

Forum statistics

Threads
1,222,116
Messages
6,164,043
Members
451,869
Latest member
Dbldoc

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