Solved

excel = this cell if this cell is blank

Posted on 2015-02-02
6
57 Views
Last Modified: 2015-02-02
How do I use an IF staement to make a cell = to another cell if a third cell is blank??

IE:  a1=b1 if c1 is blank
0
Comment
Question by:HDM
  • 3
  • 2
6 Comments
 
LVL 22

Expert Comment

by:rspahitz
ID: 40584595
This formula in A1:

=IF(C1="", B1, "other value")
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 40584599
Enter this formula in A1
=if(c1="",b1,"")
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 40584600
In some cases, you need to also check for empty, which can be done this way:

=IF(LEN(C1)=0, B1, "other value")
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:HDM
ID: 40584640
Nice!!  :-)

One other question:

If I now want to say a1 = b1 if c1 is blank AND D1 says sam

Can I do this without blowing my brain up??  :-)
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 500 total points
ID: 40584661
Yes...add an AND clause right after the IF portion:

=IF( AND(C1="", D1=""), B1, "")
0
 

Author Closing Comment

by:HDM
ID: 40584730
Wonderful!!  Thank you!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
InternetExplorer object in Excel VBA. 4 21
Export Query data to excel file 14 37
Most Consistent Performer 4 21
Excel - Duplicate values in columns 4 0
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now