Formual Help Please

rstagman

New Member
Joined
Apr 16, 2018
Messages
7
Good afternoon! I'm working on a formula for Column C to add days to the start date based on the type. Below is the formula I'm trying to use. It works perfectly when the type = "Testing", however, I'm not getting a "N/A" result when the type equals "Monitoring". Can someone take a look at this for me and let me know where I'm messing up?

FORMULA USED:
=IF(B2="","",IF(A2="Testing",B3+3,"N/A"))



DATA:
TypeStart Date Milestone 1End Date
Testing 1/30/2018
Monitoring1/1/2018 1/30/2018
Testing1/1/2018 1/30/2018
Monitoring1/1/2018 1/30/2018

<tbody>
</tbody><colgroup><col><col><col><col></colgroup>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
It works fine for me.
Are you sure that you have automatic calculations turned on?
What happens if you press F9?
 
Upvote 0
This is another way to try it, but what you have looks right, EXCEPT.......you have B3+3. Are you really meaning to step it down one row? If so it should work, but anyhow...another way:

=IF(AND(B2<>"",A2="Testing"),B3+3,"N/A")

But like I said, the 2 formulas are basically the same, and I can't see anything wrong with what you had with the exception of the stepdown in row, as mentioned.
 
Upvote 0
Hi,

Yes, as Joe4 said, there's nothing wrong with your formula and should work, only 1 thing I'd like to point out, If A2="Testing", you're adding B3 to 3, and Not B2, may be that's on purpose, pointing it out just in case.

Excel 2010
ABCD
1TypeStart Date Milestone 1End Date
2Testing1/30/2018
3Monitoring1/1/2018N/A1/30/2018
4Testing1/1/20181/4/20181/30/2018
5Monitoring1/1/2018N/A1/30/2018

<colgroup><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet20

Worksheet Formulas
CellFormula
C2=IF(B2="","",IF(A2="Testing",B3+3,"N/A"))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0
The calculation piece is working for me. I'm just not getting a return of N/A when the cell equals something other than Testing.
 
Upvote 0
=IF(AND(B2<>"",A2="Testing"),B3+3,"N/A")

This formula returns the "N/A" I was looking for. The one I created is not returning it for some reason. I tried pressing f9 and nothing.
 
Upvote 0
As jrpoffer and jtakw pointed out, I suspect you are messing up your range references, as you appeared to have done it again:
Code:
[COLOR=#333333]=IF(AND([/COLOR][COLOR=#ff0000][B]B2[/B][/COLOR][COLOR=#333333]<>"",A2="Testing"),[/COLOR][B][COLOR=#ff0000]B3[/COLOR][/B][COLOR=#333333]+3,"N/A")[/COLOR]
 
Upvote 0
The only reason your original formula would not return "N/A" when A2<>"Testing" is if B2 was empty, then it would return nothing.

Out of curiosity, what WERE you getting when A2 was something other than "Testing"?
 
Upvote 0

Forum statistics

Threads
1,214,547
Messages
6,120,139
Members
448,948
Latest member
spamiki

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