FORMULA HELP - IF Statement

milwphil

Board Regular
Joined
Aug 1, 2010
Messages
120
Good afternoon!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p> </o:p>
I need help with an ‘if’ formula:<o:p></o:p>
<o:p> </o:p>
What I’m trying to do is write it so that if there is data in cell F6 to bring in the F6 data;however, if no data exists to bring in a named cell “CODE”. If both are blank cells to have the cell blank.<o:p></o:p>
<o:p> </o:p>
This is what I have so far:<o:p></o:p>
<o:p> </o:p>
=IF(F6>=0,F6,IF(F6=0,CODE,""))

In the test data I have 6000 in the CODE named cell and blanks in F6...but the above formula is producing zeros.
<o:p> </o:p>
Any help you can provide will be greatly appreciated.<o:p></o:p>
<o:p> </o:p>
Thanks,<o:p></o:p>
Phil<o:p></o:p>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Wow! Thanks for the quick response.

It worked perfectly....

I hate to be greedy, but would you mind if I take the question a step further:

I'm adding that formula to several consecutive rows in a column. The problem I'm having now is that the formula is doing what I told it to, but when the entire row is empty is filling the rows with "6000" per my test data.

I have that formula at the end of the row for about 200 rows....for rows that are completely blank(or incomplete), I'd like the formula to produce a blank cell rather than "6000."

If I have another dependent reference cell, how could I add a condition to only return 'CODE' if D6 has data in it. If no, data the cell is blank.

THANK YOU AGAIN!!

Phil
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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