I need help with excel IF function

D

Dave7881

Hi I need help

Im trying to set up an invoice checking spreadsheet, I nee a formula that
looks at a yes/no drop down in another cell, and then either copies a second
cell to the location or leaves it blank for example:

If A1 is selected as YES then make D1 = B1

and if A1 is selected as NO make E1 = B1

Hope this makes sense, what I'm trying to do is get the Invoice Balance to
show in a paid column in green and an unpaid column in red depending on
whether it is shown as Paid - Yes/No in the paid column.
 
B

Beege

Dave7881 said:
Hi I need help

Im trying to set up an invoice checking spreadsheet, I nee a formula that
looks at a yes/no drop down in another cell, and then either copies a second
cell to the location or leaves it blank for example:

If A1 is selected as YES then make D1 = B1

and if A1 is selected as NO make E1 = B1

Hope this makes sense, what I'm trying to do is get the Invoice Balance to
show in a paid column in green and an unpaid column in red depending on
whether it is shown as Paid - Yes/No in the paid column.

Dave,

In B1, write =IF(A1="YES",D1,IF(A1="NO",E1,""))

Beege
 
G

Gord Dibben

A different interpretation from Beege's

=IF(A1="YES",B1,"") in D1

=IF(A1="NO",B1,"") in E1


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Baffeling IF statement 7
EXcel IF function 1
Formula To Keep Certain Cells Blank 5
Need help with formula 2
IF Function formula (I think?) 4
Nested IF statement 5
WRITING A WHAT IF FUNCTION 1
If statements 1

Top