Normalize With Missing Values

Thomas Scott

New Member
Joined
Nov 7, 2021
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
I am trying to normalize my data with the min-max method (0-1) and use this formula: =(Raw!B2-MIN(Raw!B:B))/(MAX(Raw!B:B)-MIN(Raw!B:B))
where Raw is the first worksheet and the results are in worksheet #2. It works fine when copying to all cells in the recipient sheet, except for a missing value. If I delete a value in Column B I get a negative number. I need to be able to normalize with the presence of missing values where typically I use a blank or empty cell which is accepted as missing by my analytical software for further computations. Thanks.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
IF((Raw!B2-MIN(Raw!B:B))/(MAX(Raw!B:B)-MIN(Raw!B:B))=0,?,(Raw!B2-MIN(Raw!B:B))/(MAX(Raw!B:B)-MIN(Raw!B:B)))

where ? is what you'd use if the cell is empty?
? could also be (Raw!B2-MIN(Raw!B:B))/(MAX(Raw!B:B)-MIN(Raw!B:B))*-1 ?
 
Upvote 0
Solution
That works fine. I thought I needed an IF statement but did not think an empty cell would work. I was thinking more along the line of COUNTIF or some test for an empty cell. Thanks very much. Case closed.
 
Upvote 0
Glad you were able to make sense of that. Upon reviewing, I think I should have bolded the ? or used some other place holder. Looks a bit confusing now!
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,483
Members
448,967
Latest member
visheshkotha

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