Another IF statement with cells without values

rcb007

Board Regular
Joined
Nov 12, 2020
Messages
90
Office Version
  1. 365
Platform
  1. Windows
I have the following formula that seems to be working, however, when the formula gets to a Row with a value in column A, its shows "00" in the formula cell. I am sure I am missing something simple to have it not show the "00".

Excel Formula:
=IF(AND($A1=$A1,$C1=0),$A1,IF(AND($A1=$A1,$C1=$C1),$C1,""))
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Can you explain exactly the logic you are trying to apply here?

Why are you checking:
$A1=$A1
and
$C1=$C1?

Values have to be equal to themselves, by definition. So I don't understand what you are trying to do there.
 
Upvote 0
Again, I am sure I am way nothing thinking about this clearly.

The formula I am trying to make is to take A1 Value and if C1 does not have value then stick with A1. However, if C1 has a value then, to use C1 instead of A1. Lastly If there are no values within A1, then show nothing.
 
Upvote 0
Try this:
Excel Formula:
=IF($C1<>"",$C1,IF($A1<>"",$A1,""))
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,831
Members
449,051
Latest member
excelquestion515

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