Multiple Cells Used Formula

Chele83

New Member
Joined
Nov 24, 2021
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Good morning. I have been trying to create a formula for one cells value to be dependent on verbiage in another cell.

End goal is: if H1 text is unsatisfactory, then I1 would equal G1 + 5days; if H1 text is satisfactory I1 would equal G1 + 15days; if H1 text is excellent I1 would equal G1 + 30 days.


A
B
C
D
E
F
G
H
I
J
PH09/11/2021Unsatisfactory
PL11/05/2021Excellent
RB11/06/2021Satisfactory

I appreciate any help or assistance with this.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
how about?

Book1
ABCDEFGHI
1PH9/11/2021Unsatisfactory9/16/2021
2PL11/5/2021Excellent12/5/2021
3RB11/6/2021Satisfactory11/21/2021
Sheet1
Cell Formulas
RangeFormula
I1:I3I1=IF(LEFT(H1,1)="U",G1+5,IF(LEFT(H1,1)="S",G1+15,G1+30))
 
Upvote 0
how about?

Book1
ABCDEFGHI
1PH9/11/2021Unsatisfactory9/16/2021
2PL11/5/2021Excellent12/5/2021
3RB11/6/2021Satisfactory11/21/2021
Sheet1
Cell Formulas
RangeFormula
I1:I3I1=IF(LEFT(H1,1)="U",G1+5,IF(LEFT(H1,1)="S",G1+15,G1+30))
Thank you!
If the days added to G1 were to change, would it be as simple as changing the formula from
=IF(LEFT(H1,1)="U",G1+5,IF(LEFT(H1,1)="S",G1+15,G1+30))
to =IF(LEFT(H1,1)="U",G1+45,IF(LEFT(H1,1)="S",G1+180,G1+360))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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