Variable Symbol

kashyap

Board Regular
Joined
Mar 28, 2009
Messages
173
Hi, How to make + symbol variable in the below formula?
This formula is in G25 and symbol is in F25 has + & - symbols

=(NOW()-E$592)+E614
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
If you are looking to add or subtract based on what is in F25:

=NOW()+(E$592*(IF(F25="+",1,-1)))+E614
 
Upvote 0
Hi kashyap

Another option: Instead of +/- in F25 write 1/-1, and use

=(NOW()-E$592)+F25*E614
 
Upvote 0
I'm getting<TABLE style="WIDTH: 100pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=133 border=0 x:str><COLGROUP><COL style="WIDTH: 100pt; mso-width-source: userset; mso-width-alt: 4864" width=133><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl32 id=td_post_1915408 style="BORDER-RIGHT: #f0f0f0; BORDER-TOP: #f0f0f0; BORDER-LEFT: #f0f0f0; WIDTH: 100pt; BORDER-BOTTOM: #f0f0f0; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right width=133 height=17 x:num="39927.259738888897">Fri 24 Apr 2009 06:14</TD></TR></TBODY></TABLE>expected is <TABLE style="WIDTH: 100pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=133 border=0 x:str><COLGROUP><COL style="WIDTH: 100pt; mso-width-source: userset; mso-width-alt: 4864" width=133><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl32 style="BORDER-RIGHT: #f0f0f0; BORDER-TOP: #f0f0f0; BORDER-LEFT: #f0f0f0; WIDTH: 100pt; BORDER-BOTTOM: #f0f0f0; HEIGHT: 12.75pt; BACKGROUND-COLOR: transparent" align=right width=133 height=17 x:num="39926.593428587963">Thu 23 Apr 2009 14:14

<!-- / message --><!-- sig --></TD></TR></TBODY></TABLE>
 
Upvote 0
Ok, but what times? What are the values? How does F25 contain a time, I thought it contained a + or -?
 
Upvote 0
Assuming the 2:00 is in E614, with my formula I get right now (at time of 9:24 AM):
Fri 24 Apr 2009 16:54
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,542
Members
449,316
Latest member
sravya

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