Solved

excel = this cell if this cell is blank

Posted on 2015-02-02
6
58 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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 demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

815 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

13 Experts available now in Live!

Get 1:1 Help Now