Re: $$Excel-Macros$$ How to execute a function only if the cell is not blank

2016-02-07 Thread Abhishek Jain
=IF(G:G<>"",MONTH(G:G),"")

HTH

On Mon, Feb 8, 2016 at 12:28 PM, James Johnston 
wrote:

> Hey guys, I am creating a budget.  I set up a google form to enter
> expenses and now am trying to create the backend.
>
> So far I have one sheet for the transactions automatically filled when I
> use the form, and copied that to a separate data sheet using Importrange,
> now I am trying to turn the timestamp in column G into just the month in a
> separate column using =month(G:G).  The problem is if the other cells in
> Column G has not been filled yet and there is no timestamp, the =month
> automatically returns "12," which is. annoying so I would like to
> have it only return a number if there is a timestamp.  I was thinking I
> needed an IF function, but can't get it to execute properly.  Here is what
> I have:
>
> =If(isnumber,=month(G:G), " ")
>
> But It doesn't seem to work that way any advice?
>
>
> --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at https://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.


$$Excel-Macros$$ How to execute a function only if the cell is not blank

2016-02-07 Thread James Johnston
Hey guys, I am creating a budget.  I set up a google form to enter expenses 
and now am trying to create the backend.

So far I have one sheet for the transactions automatically filled when I 
use the form, and copied that to a separate data sheet using Importrange, 
now I am trying to turn the timestamp in column G into just the month in a 
separate column using =month(G:G).  The problem is if the other cells in 
Column G has not been filled yet and there is no timestamp, the =month 
automatically returns "12," which is. annoying so I would like to 
have it only return a number if there is a timestamp.  I was thinking I 
needed an IF function, but can't get it to execute properly.  Here is what 
I have: 

=If(isnumber,=month(G:G), " ")

But It doesn't seem to work that way any advice?


-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.