Correcting Data

parvezs27

New Member
Joined
Jun 27, 2022
Messages
15
Office Version
  1. 365
Platform
  1. Windows
This follows from this thread

There is another problem with the same dataset which I would like to solve. Please let me know if I should make another thread as this is a separate problem. Minisheet attached.

In the release year column I would like all dates to be formatted as DD/MM/YYYY. There are some dates in there that requiring fixing such as
"23 December of 1996", "09 21 1972", "01/16-03". Instead of manually converting these to DD/MM/YYY, how can I utilise excel tools to this for me?

Similarly, in the country column, some countries are misspelled such as "New Zesland" instead of "New Zealand", "US." instead of "USA" and "Italy1" instead of "Italy". I was able to identify these misspellings by eye as the dataset is small, however, if there were hundreds of thousands of rows it would have been near impossible to identify them all. How should I go abouts in identifying and fixing these spelling errors using the excel tools?

Would appreciate any assistance here 😊

Just to add, I found an article which suggested the following Macro to identify misspellings. After running it all the above misspellings were highlighted, however "Italy1" was not.

Sub ColorMispelledCells()
For Each cl In ActiveSheet.UsedRange
If Not Application.CheckSpelling(Word:=cl.Text) Then _
cl.Interior.ColorIndex = 28
Next cl
End Sub


IMDB_Data_Analysis.csv
ABCDEFGHIJ
1Original TitleRelease YearGenreDurationCountryContent RatingDirectorGross Worldwide Votes Score
2The Shawshank Redemption10/02/1995Drama142.00USARFrank Darabont$28,815,245.002.278.8459.30
3The Godfather09 21 1972Crime Drama175.00USARFrancis Ford Coppola$246,120,974.001.572.6749.20
4The Dark Knight 23 -07-2008Action Crime Drama152.00USPG-13Christopher Nolan$1,005,455,211.002.241.6159.00
5The Godfather: Part II25/09/1975Crime Drama220.00USARFrancis Ford Coppola$ 4o8357831.098.71490.00
6Pulp Fiction28/10/1994Crime Drama154.00USARQuentin Tarantino$222,831,817.001.780.14789f
7The Lord of the Rings: The Return of the King22/02/2004Action Adventure Drama201.00New ZealandPG-13Peter Jackson$1,142,271,098.001.604.2808.90
8Schindler's List11/03/1994Biography Drama History195.00USARSteven Spielberg$322,287,794.001.183.2488.90
912 Angry Men4/09/1957Crime Drama96.00USAPGSidney Lumet$576.00668.478.90
10Inception24/09/2010Action Adventure Sci-Fi148.00USAPG-13Christopher Nolan$869,784,991.002.002.8168..8
11Fight Club10-29-99Drama139.00UKRDavid Fincher$101,218,804.001.807.4408.80
12Forrest Gump6/10/1994Drama Romance142.00USAPG-13Robert Zemeckis$678,229,452.001.755.4900.34
13The Lord of the Rings: The Fellowship of the Ring18/01/2002Action Adventure Drama178.00New ZeslandPG-13Peter Jackson$887,934,303.001.619.9208.80
14Il buono il brutto il cattivo23rd December of 1966 Western161.00ItalyRSergio Leone$25,252,481.00672.508.80
15The Matrix7/05/1999Action Sci-Fi136.00USARLana Wachowski Lilly Wachowski$465,718,588.001.632.3158.70
16The Lord of the Rings: The Two Towers01/16-03Action Adventure Drama179.00New ZelandPG-13Peter Jackson$951,227,416.001.449.7788.7.
17Star Wars: Episode V - The Empire Strikes Back19/09/1980Action Adventure Fantasy124.00USAPGIrvin Kershner$549,265,501.001.132.07387.00
18Goodfellas20/09/1990Biography Crime Drama146.00USARMartin Scorsese$46,879,633.00991.518.70
19One Flew Over the Cuckoo's Nest18/11/1976Drama133.00USARMilos Forman$108,997,629.00891.078.70
20Interstellar6/11/2014Adventure Drama Sci-Fi169.00USAPG-13Christopher Nolan$696,742,056.001.449.2568.60
21Se7en15/12/1995Crime Drama Mystery127.00USARDavid Fincher$327,333,559.001.402.0158.60
22The Silence of the Lambs5/03/1991Crime Drama Thriller118.00USARJonathan Demme$272,753,884.001.234.13486.00
23Star Wars20/10/1977Action Adventure Fantasy121.00USAPGGeorge Lucas$775,768,912.001.204.1078.60
24Saving Private Ryan30/10/1998Drama War169.00USARSteven Spielberg$482,349,603.001.203.8258.60
25The Green Mile3/10/2000Crime Drama Fantasy189.00US.RFrank Darabont$286,801,374.001.112.3368.60
26Cidade de Deus9/05/2003Crime Drama130.00BrazilRFernando Meirelles Kátia Lund$30,680,793.00685.868.60
27Sen to Chihiro no kamikakushi18/04/2003Animation Adventure Family125.00JapanPGHayao Miyazaki$355,467,056.00626.698.60
28La vita è bella20/12/1997Comedy Drama Romance116.00Italy1PG-13Roberto Benigni$230,098,753.00605.658.60
29Gisaengchung7/11/2019Comedy Drama Thriller132.00South KoreaRBong Joon Ho$257,604,912.00470.938.60
30It's a Wonderful Life11/03/1948Drama Family Fantasy130.00USAPGFrank Capra$6,130,720.00388.318.60
31Shichinin no samurai19/08/1955Action Adventure Drama207.00JapanPG-13Akira Kurosawa$322,773.00307.968.60
32Gladiator19/05/2000Action Adventure Drama155.00USARRidley Scott$465,361,176.001.308.1938.50
33The Departed27/10/2006Crime Drama Thriller151.00USARMartin Scorsese$291,465,034.001.159.7038.50
34The Prestige22/12/2006Drama Mystery Sci-Fi130.00UKPG-13Christopher Nolan$109,676,311.001.155.7238.50
35Back to the Future18/10/1985Adventure Comedy Sci-Fi116.00USAPGRobert Zemeckis$388,774,684.001.027.3308.50
36American History X27/08/1999Drama119.00USARTony Kaye$23,875,127.001.014.2188.50
37Leon7/04/1995Action Crime Drama110.00FranceRLuc Besson$19,552,639.001.007.5988.50
38Terminator 2: Judgment Day19/12/1991Action Sci-Fi137.00USARJames Cameron$520,884,847.00974.978.40
39The Usual Suspects30/11/1995Crime Mystery Thriller106.00USARBryan Singer$23,341,568.00968.958.40
40The Lion King25/11/1994Animation Adventure Drama88.00USAGRoger Allers Rob Minkoff$968,511,805.00917.258.40
41Joker3/10/2019Crime Drama Thriller122.00USARTodd Phillips$1,074,251,311.00855.108.40
42Intouchables24/02/2012Biography Comedy Drama112.00FranceROlivier Nakache Éric Toledano$426,588,510.00736.698.40
43The Pianist25/10/2002Biography Drama Music150.00UKRRoman Polanski$120,072,577.00707.948.40
44Whiplash12/02/2015Drama Music106.00USARDamien Chazelle$48,983,260.00690.738.40
45Psycho28/10/1960Horror Mystery Thriller109.00USARAlfred Hitchcock$32,008,644.00586.778.30
46Casablanca21/11/1946Drama Romance War102.00USAPGMichael Curtiz$4,374,761.00509.958.30
47C'era una volta il West21/12/1968Western165.00ItalyPG-13Sergio Leone$112,911.00295.228.30
48Hotaru no haka11/10/2015Animation Drama War89.00JapanPGIsao Takahata$516,962.00225.448.30
49Nuovo Cinema Paradiso17/11/1988Drama155.00ItalyPGGiuseppe Tornatore$13,826,605.00223.058.30
50Modern Times12/03/1937Comedy Drama Family87.00USAGCharles Chaplin$457,688.00211.258.30
51The Dark Knight Rises29/08/2012Action Adventure164.00UKPG-13Christopher Nolan$1,081,133,191.001.480.5828.30
52Django Unchained17/01/2013Drama Western165.00USARQuentin Tarantino$425,368,238.001.317.8568.30
53Memento19/01/2001Mystery Thriller113.00USARChristopher Nolan$39,970,386.001.098.8798.20
54WALL·E17/10/2008Animation Adventure Family98.00USAGAndrew Stanton$521,311,860.00974.738.20
55The Shining22/12/1980Drama Horror146.00UKRStanley Kubrick$46,520,613.00869.488.20
56Raiders of the Lost Ark12/06/1981Action Adventure115.00USAPGSteven Spielberg$390,133,212.00865.518.20
57Avengers: Infinity War25/04/2018Action Adventure Sci-Fi149.00USAPG-13Anthony Russo Joe Russo$2,048,359,754.00796.498.20
58Alien25/10/1979Horror Sci-Fi117.00UKRRidley Scott$108,110,316.00768.878.20
59Avengers: Endgame24/04/2019Action Adventure Drama181.00USAPG-13Anthony Russo Joe Russo$2,797,800,564.00754.798.20
60Apocalypse Now18/12/1979Drama Mystery War147.00USARFrancis Ford Coppola$91,968,688.00591.258.20
61Oldeuboi6/05/2005Action Drama Mystery120.00South KoreaRChan-wook Park$15,002,116.00501.088.10
62Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb3/04/1964Comedy95.00UKPGStanley Kubrick$9,443,876.00441.128.10
63Rear Window14/04/1955Mystery Thriller112.00USAPGAlfred Hitchcock$37,032,034.00432.398.10
64Coco28/12/2017Animation Adventure Family105.00USAPGLee Unkrich Adrian Molina$807,083,670.00352.468.10
65Das Leben der Anderen6/04/2007Drama Mystery Thriller137.00GermanyRFlorian Henckel von Donnersmarck$77,356,942.00349.648.10
66Spider-Man: Into the Spider-Verse25/12/2018Animation Action Adventure117.00USAPGBob Persichetti Peter Ramsey$375,540,831.00335.898.10
673 Idiots25/12/2009Comedy Drama170.00IndiaPG-13Rajkumar Hirani$60,262,836.00332.228.10
68Mononoke-hime19/05/2000Animation Adventure Fantasy134.00JapanPG-13Hayao Miyazaki$169,785,629.00331.058.00
69Once Upon a Time in America28/09/1984Crime Drama229.00USARSergio Leone$5,472,914.00302.328.00
70The Great Dictator25/06/1945Comedy Drama War125.00USAPGCharles Chaplin$969,879.00197.388.00
71Sunset Blvd.The 6th of marzo year 1951Drama Film-Noir110.00USAPGBilly Wilder$299,645.00195.798.00
72Inglourious Basterds2/10/2009Adventure Drama War153.00GermanyRQuentin Tarantino$321,455,689.001.229.9588.00
73American Beauty21/01/2000Drama122.00USARSam Mendes$356,296,601.001.049.0098.00
74Braveheart1/12/1995Biography Drama History178.00USARMel Gibson$213,216,216.00941.687.90
75Star Wars: Episode VI - Return of the Jedi21/10/1983Action Adventure Fantasy131.00USAPGRichard Marquand$475,347,111.00928.047.90
76Reservoir Dogs9/10/1992Crime Drama Thriller99.00USARQuentin Tarantino$2,889,963.00896.557.90
77Eternal Sunshine of the Spotless Mind22/10/2004Drama Romance Sci-Fi108.00USARMichel Gondry$74,036,715.00889.887.90
78Toy Story22/03/1996Animation Adventure Comedy81.00USAGJohn Lasseter$404,265,438.00864.467.90
79Good Will Hunting6/03/1998Drama Romance126.00USARGus Van Sant$225,933,435.00837.387.80
80Snatch16/03/2001Comedy Crime104.00UKRGuy Ritchie$83,557,872.00766.597.80
81Requiem for a Dream15/12/2000Drama102.00USARDarren Aronofsky$7,390,108.00748.297.80
82A Clockwork Orange7/09/1972Crime Drama Sci-Fi136.00UKRStanley Kubrick$26,903,440.00740.307.80
83Toy Story 37/07/2010Animation Adventure Comedy103.00USAGLee Unkrich$1,066,969,703.00739.727.80
84Scarface1984-02-34Crime Drama170.00USARBrian De Palma$66,023,585.00721.347.80
85Taxi Driver1976-13-24Crime Drama114.00USARMartin Scorsese$28,441,292.00703.267.70
86Le fabuleux destin d'Amélie Poulain25/01/2002Comedy Romance122.00FranceRJean-Pierre Jeunet$173,924,742.00690.487.70
87Full Metal Jacket9/10/1987Drama War116.00UKRStanley Kubrick$46,357,676.00658.187.70
88Aliens24/09/1986Action Adventure Sci-Fi137.00USARJames Cameron$131,384,634.00639.507.70
892001: A Space Odyssey12/12/1968Adventure Sci-Fi149.00UKGStanley Kubrick$68,989,547.00587.877.60
90Citizen Kane25/11/1948Drama Mystery119.00USAPGOrson Welles$1,594,107.00389.327.60
91191723/01/2020Drama War119.00USARSam Mendes$384,857,224.00362.907.60
92Amadeus15/02/1985Biography Drama History160.00USARMilos Forman$52,066,791.00361.037.60
93Vertigo18/11/1958Mystery Romance Thriller128.00USAPGAlfred Hitchcock$7,796,389.00352.797.50
94North by Northwest28/10/1959Adventure Mystery Thriller136.00USAGAlfred Hitchcock$73,446.00291.637.50
95Jagten22/11/2012Drama115.00DenmarkRThomas Vinterberg$15,843,274.00269.627.50
96Lawrence of Arabia29/10/1963Adventure Biography Drama228.00UKPGDavid Lean$45,710,874.00261.507.50
97The Sting21/03/1974Comedy Crime Drama129.00USAPGGeorge Roy Hill$156,000,000.00236.297.50
98Das Boot18/03/1982Adventure Drama Thriller149.00West GermanyRWolfgang Petersen$11,487,676.00226.437.50
99Per qualche dollaro in più20/12/1965Western132.00ItalyRSergio Leone$15,000,000.00226.047.40
100Jodaeiye Nader az Simin21/10/2011Drama123.00IranPG-13Asghar Farhadi$22,926,076.00214.177.40
101Singin' in the Rain5/02/1953Comedy Musical Romance103.00USAGStanley Donen$1,864,182.00213.157.40
IMDB_Data_Analysis
Cell Formulas
RangeFormula
J15J15=+8.7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B:BCellcontains an errortextNO
A1:J101Cellcontains an errortextNO
A1:J101Cellcontains a blank value textNO
 
Last edited by a moderator:

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,214,606
Messages
6,120,492
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