WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Conditional Formatting question (if cell = 0, wrap cell in..

 
   Home -> Office -> New Users RSS
Next:  Part of screen freezing up grey  
Author Message
Mo2

External


Since: Mar 29, 2007
Posts: 10



(Msg. 1) Posted: Tue May 01, 2007 10:35 am
Post subject: Conditional Formatting question (if cell = 0, wrap cell in quotes)
Archived from groups: microsoft>public>excel>newusers (more info?)

IF Cell value = 0, wrap with quotes
not exactly quotes.. but with this number format: ""'#0"',"
wrapped in single quotes, followed by a comma.

(format-cells - costum , to see what it looks like)


also, i dont want it to apply to every column (if its possible to do that)
just A1:A323, B1:B323, E1:E323, G1:G323, I1:I323, K1:K323

thanks in advance
Back to top
Login to vote
Bernie Deitrick

External


Since: Apr 02, 2004
Posts: 1177



(Msg. 2) Posted: Wed May 02, 2007 11:21 am
Post subject: Re: Conditional Formatting question (if cell = 0, wrap cell in quotes) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mo,

You don't need to use conditional formatting: just use a custom number format. From Help:



Replace the format for zeroes with "'#0"', or ""'#0"'," I'm not sure which will geive you
your desired results.

HTH,
Bernie
MS Excel MVP


"Mo2" <Mo2 RemoveThis @discussions.microsoft.com> wrote in message
news:EE807DC7-CF0D-497B-AC29-142D18197E0F@microsoft.com...
> IF Cell value = 0, wrap with quotes
> not exactly quotes.. but with this number format: ""'#0"',"
> wrapped in single quotes, followed by a comma.
>
> (format-cells - costum , to see what it looks like)
>
>
> also, i dont want it to apply to every column (if its possible to do that)
> just A1:A323, B1:B323, E1:E323, G1:G323, I1:I323, K1:K323
>
> thanks in advance
>
>


begin 666 custnum.gif
M1TE&.#EA:@$S`(#_`/___P```"'Y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*JL`INIJK++.^B.=NHD'*V U5@7=2;3^`&E(_,#7:X'BY;:A;S'_^6DG
MF;?:9TFQ&.(76'O1VEHM2N!@J^VPTM+Y[8*9^+AMK_/YN"M[WUUK+ShockedO,=ML
M>,-^URR]'.X)+(ZZ(,=OL.%FFVR(*<&[BK[&!=2O)/\Z&]_ ]K%P[,/()AML
MCU^:]"RFS>%5<3#G!?<&=;&\B7%&T);\7CH<ZZ?=OD]N"7/+`%W7&VVW&9QM
MKB+H7*L8'?LL4,!:_CKK$$0?C?2$4"S-=--./RU$@U!/337/2>=@-=)97PW/
MUD1[S?6087L4&FT0IP0JMSJX`#:M_A#YL="!63>55V;1K#)B(I,44-Y3JA5H
M4&TYFAF\8R-)6:!=^056P9<NQI<J"L$9#E0"0Z^I,BII0:67V93'Z(OE*;==
M=+U_AZRYNDUFWF>'Y19V\8@D_K1,5JU3V:654F[+^^$9FOXZ[>/(;KN),I'N
M>_(-% ``.W<OB*P^N[8D[&*&-H\LHL&"93UZS-]:2_9W&K_MJ*@]LQELKW75
M#BY>%=91I0U?V3[<<%9U/CWK!_8TT8:3OQ.IY4\S^Y-'-+Q4MP`Q3$JNL52A
:4-.[`.(O4)+IGZG4=Q4`FNEW&AQ%`0``.P``
`
end
Back to top
Login to vote
Bernie Deitrick

External


Since: Apr 02, 2004
Posts: 1177



(Msg. 3) Posted: Wed May 02, 2007 11:33 am
Post subject: Re: Conditional Formatting question (if cell = 0, wrap cell in quotes) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mo,

Well, that didn't work well - the section of help that I copied was a .gif - you will need to open
the attachment.. Sorry.

HTH,
Bernie
MS Excel MVP


"Bernie Deitrick" <deitbe @ consumer dot org> wrote in message
news:O5sa81MjHHA.588@TK2MSFTNGP06.phx.gbl...
> Mo,
>
> You don't need to use conditional formatting: just use a custom number format. From Help:
>
>
>
> Replace the format for zeroes with "'#0"', or ""'#0"'," I'm not sure which will geive you
> your desired results.
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "Mo2" <Mo2 RemoveThis @discussions.microsoft.com> wrote in message
> news:EE807DC7-CF0D-497B-AC29-142D18197E0F@microsoft.com...
>> IF Cell value = 0, wrap with quotes
>> not exactly quotes.. but with this number format: ""'#0"',"
>> wrapped in single quotes, followed by a comma.
>>
>> (format-cells - costum , to see what it looks like)
>>
>>
>> also, i dont want it to apply to every column (if its possible to do that)
>> just A1:A323, B1:B323, E1:E323, G1:G323, I1:I323, K1:K323
>>
>> thanks in advance
>>
>>
>
>
>
Back to top
Login to vote
Mo2

External


Since: Mar 29, 2007
Posts: 10



(Msg. 4) Posted: Wed May 02, 2007 11:33 am
Post subject: Re: Conditional Formatting question (if cell = 0, wrap cell in quo [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

u mean theres attachments on this forum? where?
a .gif? i dont see that anywhere either... or a broken link or whatnot


Bernie, the problem is this:
I have a # column, a text column, # column, text column, etc
(and i need them in this particular order, to be copied and pasted into
notepad, for a reason or another)

the cells have this format applied to them:
number column: ""'#0"',"
text columns: ""'@"',"

the problem is, sometimes,
the cells in the TEXT column (which only have a text cell format)
will have a 0 in them. it wont be wrapped in quotes and such:(

so my choices (as far as i know) are either
1) find a way to apply BOTH a text AND number cell format to all cells
2) a format which applies to any cell, regardless of text/number value.
(cell range A1:R323)
3) Conditional formatting for 0's
(seems the easiest/most possible method)

i'm not sure what other options i have atm




"Bernie Deitrick" wrote:

> Mo,
>
> Well, that didn't work well - the section of help that I copied was a .gif - you will need to open
> the attachment.. Sorry.
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "Bernie Deitrick" <deitbe @ consumer dot org> wrote in message
> news:O5sa81MjHHA.588@TK2MSFTNGP06.phx.gbl...
> > Mo,
> >
> > You don't need to use conditional formatting: just use a custom number format. From Help:
> >
> >
> >
> > Replace the format for zeroes with "'#0"', or ""'#0"'," I'm not sure which will geive you
> > your desired results.
> >
> > HTH,
> > Bernie
> > MS Excel MVP
> >
> >
> > "Mo2" <Mo2.RemoveThis@discussions.microsoft.com> wrote in message
> > news:EE807DC7-CF0D-497B-AC29-142D18197E0F@microsoft.com...
> >> IF Cell value = 0, wrap with quotes
> >> not exactly quotes.. but with this number format: ""'#0"',"
> >> wrapped in single quotes, followed by a comma.
> >>
> >> (format-cells - costum , to see what it looks like)
> >>
> >>
> >> also, i dont want it to apply to every column (if its possible to do that)
> >> just A1:A323, B1:B323, E1:E323, G1:G323, I1:I323, K1:K323
> >>
> >> thanks in advance
> >>
> >>
> >
> >
> >
>
>
>
Back to top
Login to vote
Bernie Deitrick

External


Since: Apr 02, 2004
Posts: 1177



(Msg. 5) Posted: Wed May 02, 2007 2:10 pm
Post subject: Re: Conditional Formatting question (if cell = 0, wrap cell in quo [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Mo,

Custom formats have four sections: format for values greater than zero, format for values less than
zero, formats for 0 values, and formats for string values, separated by ;'s. So:

#.00;[Red]#.00;"'0"',;'@',

will do something along the lines of what you want.... Not sure how you want text to appear. Just
play with the strings in the third and fourth positions.

HTH,
Bernie
MS Excel MVP


"Mo2" <Mo2.DeleteThis@discussions.microsoft.com> wrote in message
news:2ED38465-D12F-4C45-972A-560C06C94891@microsoft.com...
>u mean theres attachments on this forum? where?
> a .gif? i dont see that anywhere either... or a broken link or whatnot
>
>
> Bernie, the problem is this:
> I have a # column, a text column, # column, text column, etc
> (and i need them in this particular order, to be copied and pasted into
> notepad, for a reason or another)
>
> the cells have this format applied to them:
> number column: ""'#0"',"
> text columns: ""'@"',"
>
> the problem is, sometimes,
> the cells in the TEXT column (which only have a text cell format)
> will have a 0 in them. it wont be wrapped in quotes and such:(
>
> so my choices (as far as i know) are either
> 1) find a way to apply BOTH a text AND number cell format to all cells
> 2) a format which applies to any cell, regardless of text/number value.
> (cell range A1:R323)
> 3) Conditional formatting for 0's
> (seems the easiest/most possible method)
>
> i'm not sure what other options i have atm
>
>
>
>
> "Bernie Deitrick" wrote:
>
>> Mo,
>>
>> Well, that didn't work well - the section of help that I copied was a .gif - you will need to
>> open
>> the attachment.. Sorry.
>>
>> HTH,
>> Bernie
>> MS Excel MVP
>>
>>
>> "Bernie Deitrick" <deitbe @ consumer dot org> wrote in message
>> news:O5sa81MjHHA.588@TK2MSFTNGP06.phx.gbl...
>> > Mo,
>> >
>> > You don't need to use conditional formatting: just use a custom number format. From Help:
>> >
>> >
>> >
>> > Replace the format for zeroes with "'#0"', or ""'#0"'," I'm not sure which will geive
>> > you
>> > your desired results.
>> >
>> > HTH,
>> > Bernie
>> > MS Excel MVP
>> >
>> >
>> > "Mo2" <Mo2.DeleteThis@discussions.microsoft.com> wrote in message
>> > news:EE807DC7-CF0D-497B-AC29-142D18197E0F@microsoft.com...
>> >> IF Cell value = 0, wrap with quotes
>> >> not exactly quotes.. but with this number format: ""'#0"',"
>> >> wrapped in single quotes, followed by a comma.
>> >>
>> >> (format-cells - costum , to see what it looks like)
>> >>
>> >>
>> >> also, i dont want it to apply to every column (if its possible to do that)
>> >> just A1:A323, B1:B323, E1:E323, G1:G323, I1:I323, K1:K323
>> >>
>> >> thanks in advance
>> >>
>> >>
>> >
>> >
>> >
>>
>>
>>
Back to top
Login to vote
Mo2

External


Since: Mar 29, 2007
Posts: 10



(Msg. 6) Posted: Wed May 02, 2007 8:58 pm
Post subject: Re: Conditional Formatting question (if cell = 0, wrap cell in quo [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thanks very much:)
works like a charm

i finally understand what the ; are for
(well..i had an idea before, but now i get why it wasn't working in my
format testings lol)

"Bernie Deitrick" wrote:

> Mo,
>
> Custom formats have four sections: format for values greater than zero, format for values less than
> zero, formats for 0 values, and formats for string values, separated by ;'s. So:
>
> #.00;[Red]#.00;"'0"',;'@',
>
> will do something along the lines of what you want.... Not sure how you want text to appear. Just
> play with the strings in the third and fourth positions.
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "Mo2" <Mo2.RemoveThis@discussions.microsoft.com> wrote in message
> news:2ED38465-D12F-4C45-972A-560C06C94891@microsoft.com...
> >u mean theres attachments on this forum? where?
> > a .gif? i dont see that anywhere either... or a broken link or whatnot
> >
> >
> > Bernie, the problem is this:
> > I have a # column, a text column, # column, text column, etc
> > (and i need them in this particular order, to be copied and pasted into
> > notepad, for a reason or another)
> >
> > the cells have this format applied to them:
> > number column: ""'#0"',"
> > text columns: ""'@"',"
> >
> > the problem is, sometimes,
> > the cells in the TEXT column (which only have a text cell format)
> > will have a 0 in them. it wont be wrapped in quotes and such:(
> >
> > so my choices (as far as i know) are either
> > 1) find a way to apply BOTH a text AND number cell format to all cells
> > 2) a format which applies to any cell, regardless of text/number value.
> > (cell range A1:R323)
> > 3) Conditional formatting for 0's
> > (seems the easiest/most possible method)
> >
> > i'm not sure what other options i have atm
> >
> >
> >
> >
> > "Bernie Deitrick" wrote:
> >
> >> Mo,
> >>
> >> Well, that didn't work well - the section of help that I copied was a .gif - you will need to
> >> open
> >> the attachment.. Sorry.
> >>
> >> HTH,
> >> Bernie
> >> MS Excel MVP
> >>
> >>
> >> "Bernie Deitrick" <deitbe @ consumer dot org> wrote in message
> >> news:O5sa81MjHHA.588@TK2MSFTNGP06.phx.gbl...
> >> > Mo,
> >> >
> >> > You don't need to use conditional formatting: just use a custom number format. From Help:
> >> >
> >> >
> >> >
> >> > Replace the format for zeroes with "'#0"', or ""'#0"'," I'm not sure which will geive
> >> > you
> >> > your desired results.
> >> >
> >> > HTH,
> >> > Bernie
> >> > MS Excel MVP
> >> >
> >> >
> >> > "Mo2" <Mo2.RemoveThis@discussions.microsoft.com> wrote in message
> >> > news:EE807DC7-CF0D-497B-AC29-142D18197E0F@microsoft.com...
> >> >> IF Cell value = 0, wrap with quotes
> >> >> not exactly quotes.. but with this number format: ""'#0"',"
> >> >> wrapped in single quotes, followed by a comma.
> >> >>
> >> >> (format-cells - costum , to see what it looks like)
> >> >>
> >> >>
> >> >> also, i dont want it to apply to every column (if its possible to do that)
> >> >> just A1:A323, B1:B323, E1:E323, G1:G323, I1:I323, K1:K323
> >> >>
> >> >> thanks in advance
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >>
> >>
> >>
>
>
>
Back to top
Login to vote
user

External


Since: May 11, 2007
Posts: 5



(Msg. 7) Posted: Fri May 11, 2007 3:06 pm
Post subject: Re: Conditional Formatting question (if cell = 0, wrap cell in quo [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

HI, MY NAME IS MIN ZUN SEO.
I'M MICROSOFT EXCEL MVP.
YOUR ANSWER IS ALWAYS GRATEFUL.
REGARDS.
MS EXCEL MVP
MIN ZUN SEO.

"Bernie Deitrick" wrote:

> Mo,
>
> You don't need to use conditional formatting: just use a custom number format. From Help:
>
>
>
> Replace the format for zeroes with "'#0"', or ""'#0"'," I'm not sure which will geive you
> your desired results.
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "Mo2" <Mo2 RemoveThis @discussions.microsoft.com> wrote in message
> news:EE807DC7-CF0D-497B-AC29-142D18197E0F@microsoft.com...
> > IF Cell value = 0, wrap with quotes
> > not exactly quotes.. but with this number format: ""'#0"',"
> > wrapped in single quotes, followed by a comma.
> >
> > (format-cells - costum , to see what it looks like)
> >
> >
> > also, i dont want it to apply to every column (if its possible to do that)
> > just A1:A323, B1:B323, E1:E323, G1:G323, I1:I323, K1:K323
> >
> > thanks in advance
> >
> >
>
>
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> New Users All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET