MS Excel Help
#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.

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.
#32



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.
For example:
if time in third cell > 2:00pm?
Thanks again,
#33
Moderator, Hilton Honors



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
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
#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.
The first column is left-aligned, and the second is justified.
Code:
|This is a test of |This is a test of| |justify. |justify. |
Last edited by alanh; May 24, 2006 at 1:14 pm Reason: Can't tell my left from my right
#35
FlyerTalk Evangelist




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.
The first column is right-aligned, and the second is justified.
Code:
|This is a test of |This is a test of| |justify. |justify. |
#36
FlyerTalk Evangelist




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!
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!
#37




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.
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.
#38


Join Date: Dec 2003
Location: Washington, DC
Programs: Hyatt Globalist, AA Executive Platinum
Posts: 2,093
If I understand the question, you have:
And you want:
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.
PHP Code:
A B
1 xxx
xxx
xxx
xxx
2 xxx
3 xxx
xxx
xxx
PHP Code:
A B
1 xxx
1 xxx
1 xxx
1 xxx
2 xxx
3 xxx
3 xxxx
3 xxxx
#40




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 ?
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 ?
#41

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 ?
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 ?
And if you plan on going to 2007 - dont waste too much time driving yourself nuts now - major changes to Excelb

