IF Functions

Pippy79

Board Regular
Joined
Nov 18, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
HI All,

i need to do a IF formula as shown below. formula is needed in column C as per the description.

ABC
1​
DateDate+1
2​
13/12/2023​
AIf b2 = "A" then Display A2 +1 day
3​
14/12/2023​
A
4​
15/12/2023​
BIf b4 = "B" then Display "N/A"
5​
16/12/2023​
B
6​
17/12/2023​
A
7​
18/12/2023​
A

can you advise?

thanks
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I think you mean:

Excel Formula:
=IF(B2="A",A2+1,"N/A")

That assumes that column B is always either A or B.
 
Upvote 0
what if column B can be multiple text options? there are always only 2 outcomes (+1 or N/A)
 
Upvote 0
For your sample data (or a new slightly larger/more varied set), can you manually fill in all the expected results and post that again with any further explanation to help clarify?
 
Upvote 0
Maybe:

Excel Formula:
=IF(B2="A",A2+1,IF(B2="B","N/A",""))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,420
Messages
6,124,803
Members
449,190
Latest member
cindykay

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