How to write formula If blank add?

Hi I need to make a formula that will fill in blank cells in column L with "N". If cells in column M are blank DO NOT fill in column L.
Thanks,
Jimi
Jimi ShermanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

brendanmeyerCommented:
=IF(M1="","","N")

Open in new window

or
=IF(M1="","N","")

Open in new window

copy the formula to other cells
0
Jimi ShermanAuthor Commented:
Sorry that I forgot to say that there is already info in some of the cells in column L, so I cannot have a formula in that column. Sorry I did not sat that before.
Jimi
0
byundtMechanical EngineerCommented:
If you don't want to write over existing formulas in column L, then you could use the macro below to search columns L and M for rows where the formula in column L returns an empty string and column M is not blank.
Sub DefaultColumnL()
Dim cel As Range, rg As Range
Application.ScreenUpdating = False
Set rg = Range("M2")        'First cell with data in column M
Set rg = Range(rg, Cells(Rows.Count, rg.Column).End(xlUp))  'All the data in column M
Set rg = rg.Offset(0, -1)
For Each cel In rg.Cells
    If cel.Value = "" And cel.Offset(0, 1).Value <> "" Then cel.Value = "N"
Next
End Sub

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jimi ShermanAuthor Commented:
Thanks again,
Jimi
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.