Community
Wiki Posts
Search

MS Excel Help

Thread Tools
 
Search this Thread
 
Old May 23, 2006 | 8:19 pm
  #31  
 
Join Date: Sep 2004
Posts: 162
Originally Posted by sadiqhassan
I've got 2 perplexing questions

1) can I justify a cell fully so that the text stretches across it?
Example:

|h a p p y| rather than |happy | where | and | are cell boundaries.
Justify should do something like that, but it doesn't seem to work for me.
ajalan is offline  
Old May 23, 2006 | 8:32 pm
  #32  
10 Countries Visited
All eyes on you!
20 Years on Site
 
Join Date: Jan 2005
Location: Pennsylvania
Programs: AA Platinum Pro, AC *S, Marriott Gold Elite, Hyatt Explorist
Posts: 9,791
Originally Posted by Efrem

2) Enter formulas like these into the two conditional destination cells:

=if(third cell > 100,first cell,"")
=if(third cell > 100,second cell,"")

The "" puts a null text string (i.e., nothing at all) in the destination cells if the condition in the IF function is not satisfied.
would it be possible to do this with times?

For example:

if time in third cell > 2:00pm?

Thanks again,
sadiqhassan is offline  
Old May 23, 2006 | 8:44 pm
  #33  
Moderator, Hilton Honors
Conversation Starter
All eyes on you!
20 Years on Site
 
Join Date: Nov 2003
Location: on a short leash
Programs: some
Posts: 71,445
yes but it depends on how you have entered/formatted the third cell

if it is done as text and using 24 hour naming then if(third cell >"1400",first cell,"") works
if it is done as number and using 24 hour naming then if(third cell>1400,first cell,"") works (note no "" around the criteria)
if it is done as time and no date is entered then Excel defaults to 0/1/1900 date and 2pm is 14/24 so if(third cell>(14/24),first cell,"") works
if it is done as time and date is entered, and assuming you dont care about the day then if((third cell - int(third cell))>(14/24),first cell,"") works
Kiwi Flyer is offline  
Old May 23, 2006 | 10:49 pm
  #34  
 
Join Date: Apr 2005
Location: PHX
Posts: 3,794
Justify only works on (a) cells with word wrap enabled, and (b) not on the last line. If you only have one line, it's not justified.
Code:
|This is a test of  |This  is a  test of|
|justify.           |justify.           |
The first column is left-aligned, and the second is justified.

Last edited by alanh; May 24, 2006 at 1:14 pm Reason: Can't tell my left from my right
alanh is offline  
Old May 24, 2006 | 8:00 am
  #35  
FlyerTalk Evangelist
40 Countries Visited
3M
All eyes on you!
25 Years on Site
 
Join Date: May 1998
Location: Massachusetts, USA; AA 2.996MM & Plat Pro, DL 1MM, GM & Flying Colonel
Posts: 25,036
Originally Posted by alanh
Justify only works on (a) cells with word wrap enabled, and (b) not on the last line. If you only have one line, it's not justified.
Code:
|This is a test of  |This  is a  test of|
|justify.           |justify.           |
The first column is right-aligned, and the second is justified.
I think you mean left-aligned, which is what General defaults to for text, but in any case those were exactly the problems I ran into when I tried to use Justify to make this happen. The only thing I can suggest is that, if this is a one-time deal and the text to be stretched out won't change, experiment with spaces between the letters to see if that might look OK. Caution: if the spreadsheet might be used on other computers that could have different versions of the fonts or other system-level differences, the results of this sort of hard formatting can look weird.
Efrem is offline  
Old May 28, 2006 | 3:05 am
  #36  
FlyerTalk Evangelist
40 Countries Visited
3M
All eyes on you!
25 Years on Site
 
Join Date: May 1998
Location: Massachusetts, USA; AA 2.996MM & Plat Pro, DL 1MM, GM & Flying Colonel
Posts: 25,036
The connection at NRT was incredibly smooth today and I ended up with some extra time waiting for my flight. Here's one way to justify the text:

1. Enter "H a p p y sesquipedalianthology" into the cell. There is one space between each letter of the text you want to justify, another one after it. The last part can be any string that's too long to fit into one cell width. If "Happy" with a space between each letter is too big, double-click the cell to activate in-cell editing and set the spaces to a smaller point size.

2. Format the cell to justify horizontally, to align at the top vertically, and to wrap.

3. The row will become deep enough to show all the text, including the junk word. Grab it by the row number at the left and squeeze it back up so only the row you want shows.

Let us know if it works for you!
Efrem is offline  
Old May 28, 2006 | 3:28 am
  #37  
10 Countries Visited
20 Countries Visited
30 Countries Visited
20 Years on Site
 
Join Date: Jul 2001
Location: London, England.
Programs: BA
Posts: 8,773
Can I ask another.

I have some substantial Excel sheets with a lot of aircraft data on them. The person who put them together only put the aircraft serial number (one of the columns) against the first line for such, any additional lines (from none to say 20 of them) and the serial number column is just blank.

This is fine for just looking at the info, but if you want to sort the sheet on one of the other data columns to bring common things together, the serial number reference is then lost.

So, can anyone suggets a formula which says "if the cell is blank, then make it the value of the cell above, if that has something in it". Probably best to add an extra column to do this.
WHBM is offline  
Old May 28, 2006 | 8:37 am
  #38  
All eyes on you!
20 Years on Site
 
Join Date: Dec 2003
Location: Washington, DC
Programs: Hyatt Globalist, AA Executive Platinum
Posts: 2,093
If I understand the question, you have:
PHP Code:
A   B
1   xxx
    xxx
    xxx
    xxx
2   xxx
3   xxx
    xxx
    xxx 
And you want:
PHP Code:
A   B
1   xxx
1   xxx
1   xxx
1   xxx
2   xxx
3   xxx
3   xxxx
3   xxxx 
Insert a new column A. Make a1 = B1. Make a2 = '=IF(B2="",A1,B2)'. Copy A2 and paste into the rest of column a. Either hide B, or copy column a, do a paste special-> values into a new column, and delete a and b.
murphy is offline  
Old May 28, 2006 | 10:28 am
  #39  
10 Countries Visited
20 Countries Visited
30 Countries Visited
20 Years on Site
 
Join Date: Jul 2001
Location: London, England.
Programs: BA
Posts: 8,773
Murphy, thank you very much, you are correct in your supposition, a bit busy at the moment, will give it a shot later.
WHBM is offline  
Old May 30, 2006 | 9:32 am
  #40  
10 Countries Visited
20 Countries Visited
30 Countries Visited
20 Years on Site
 
Join Date: Jul 2001
Location: London, England.
Programs: BA
Posts: 8,773
Murphy, thanks for that, works fine, I just never worked out the syntax of the IF statements before, have been able to do some others now

Another question for everybody.

I am Windows 2002. My cells are format Text, with Wrap Text enabled. I can enter up to 255 characters of text in a cell, anything beyond that and the whole cell just shows all ###### although when selected the full cell contents are correctly shown in the formula bar.

But I read the Excel spec is a cell limit of 32,768 characters, of which the first 1,024 characters are displayed in the cell. Any reason for the shortfall I am getting ?
WHBM is offline  
Old May 30, 2006 | 10:15 pm
  #41  
20 Years on Site
 
Join Date: May 2001
Location: Phoenix
Programs: UA1k;HH Gold;MR Gold
Posts: 6,112
Originally Posted by WHBM
Murphy, thanks for that, works fine, I just never worked out the syntax of the IF statements before, have been able to do some others now

Another question for everybody.

I am Windows 2002. My cells are format Text, with Wrap Text enabled. I can enter up to 255 characters of text in a cell, anything beyond that and the whole cell just shows all ###### although when selected the full cell contents are correctly shown in the formula bar.

But I read the Excel spec is a cell limit of 32,768 characters, of which the first 1,024 characters are displayed in the cell. Any reason for the shortfall I am getting ?
Which version of OFfice are you running

And if you plan on going to 2007 - dont waste too much time driving yourself nuts now - major changes to Excelb
jan_az is offline  


Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.