Help with an IF

msja26

New Member
Joined
Sep 18, 2010
Messages
41
I have a spread sheet I us for pricing thru the month. In cell AD358 I have the following formula that show the last NON-ZERO entry in the row (there will always be some zeros as well as blank cells)<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=64 x:str><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #ccffcc; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid" class=xl23 height=17 width=64 x:str="'=LOOKUP(9.99999999999999E+307,1/E358:AA358,E358:AA358)">=LOOKUP(9.99999999999999E+307,1/E358:AA358,E358:AA358)</TD></TR></TBODY></TABLE>
This has worked great for my needs but now I have been asked to link my data to another sheet. They want to have the price the Item started at, cell C358, or, if it has changed the new price, cell AD358 displayed for their link. I tried to put in =IF($AD358 = "", $C358, $AD358). This works great if a new price is entered but if not, in call AD358 it showes #N/A, which I have never cared about but now I do not know how to set the formula in the "IF" to work. Please help!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Try

=IF(ISNA($AD358),"",IF($AD358="",$C358,,$AD358))

That will return a blank "" when AD358 is #N/A
 
Upvote 0
I did a typo, put 2 commas instead of 1

=IF(ISNA($AD358),"",IF($AD358="",$C358,,$AD358))

Should be
=IF(ISNA($AD358),"",IF($AD358="",$C358,$AD358))
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,921
Members
449,094
Latest member
teemeren

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