memphis123
New Member
- Joined
- Mar 6, 2019
- Messages
- 3
Hello all and thank you in advance for any advice.
Microsoft 2016
I have dates listed in and based on how far away the date is from today in decimal forum I need to add 2 cells together. As an example, if the item x is 6 months from now, I need to add a cell to the price shown therefore increasing the price.
This is my current formula that does not work. I was under the assumption a nested if function was the best solution, but it may not be.
=(IF(AND(D2>H6,D2< i6),b2+j6),if(and(d2>H5,D2< i5),b2+j5),if(and(d2>H4,D2< i4),b2+j4),if(and(d2>H3,D2< i3),b2+j3),if(and(d2>H2,D2< i2),b2+j2,"check"))<i6),b2+j6),if(and(d2><i5),b2+j5),if(and(d2><i4),b2+j4),if(and(d2><i3),b2+j3),if(and(d2><i2),b2+j2,"check"))
D= time in years (decimal form) from today
H= upper bound of time range
I = lower bound of time range
B = price
j = amount I need to increase price by if d falls withing the range between h & I.</i2),b2+j2,"check"))
</i3),b2+j3),if(and(d2></i4),b2+j4),if(and(d2></i5),b2+j5),if(and(d2></i6),b2+j6),if(and(d2>
Microsoft 2016
I have dates listed in and based on how far away the date is from today in decimal forum I need to add 2 cells together. As an example, if the item x is 6 months from now, I need to add a cell to the price shown therefore increasing the price.
This is my current formula that does not work. I was under the assumption a nested if function was the best solution, but it may not be.
=(IF(AND(D2>H6,D2< i6),b2+j6),if(and(d2>H5,D2< i5),b2+j5),if(and(d2>H4,D2< i4),b2+j4),if(and(d2>H3,D2< i3),b2+j3),if(and(d2>H2,D2< i2),b2+j2,"check"))<i6),b2+j6),if(and(d2><i5),b2+j5),if(and(d2><i4),b2+j4),if(and(d2><i3),b2+j3),if(and(d2><i2),b2+j2,"check"))
D= time in years (decimal form) from today
H= upper bound of time range
I = lower bound of time range
B = price
j = amount I need to increase price by if d falls withing the range between h & I.</i2),b2+j2,"check"))
</i3),b2+j3),if(and(d2></i4),b2+j4),if(and(d2></i5),b2+j5),if(and(d2></i6),b2+j6),if(and(d2>
Last edited by a moderator: