Wikiposts
Search
The Pacific: General Aviation & Questions The place for students, instructors and charter guys in Oz, NZ and the rest of Oceania.

Calling MS Excel Guru's

Thread Tools
 
Search this Thread
 
Old 1st May 2009, 04:15
  #1 (permalink)  
Thread Starter
 
Join Date: Jun 2006
Location: somewhere civilised
Posts: 67
Likes: 0
Received 0 Likes on 0 Posts
Calling MS Excel Guru's

hey guys, I am working on my excel logbook and have stumbled across somthing that I dont know how to do. I have tried searching google for help, but I cant find anything specific to what i'm trying to do.

Basically, I want to write a formula so that IF I have a value in a box lets say A1 then I want excel to copy the data from B1 into B2.

So I know that I have to write this formula in B2 using the IF statement, however can any of you help me out writing the correct formula?

Many thanks for all your help!
Wildduke is offline  
Old 1st May 2009, 04:18
  #2 (permalink)  
Moderator
 
Join Date: Apr 2001
Location: various places .....
Posts: 7,187
Received 97 Likes on 65 Posts
Try, in B2

=IF(A1="","",B1)

This looks at A1 to see if A1 is empty, in which case make B2 empty, otherwise copy B1 across to B2.

This doesn't care what the cell contents might be so, depending on what you are doing and how you are formatting, you might need to make the expression a bit flashier .. come back to us if the vanilla version doesn't do what you are after ..

Depending on how you are setting up your spreadsheet, the array functions may prove to be very useful to you as well.
john_tullamarine is online now  
Old 1st May 2009, 04:36
  #3 (permalink)  
Moderator
 
Join Date: Apr 2001
Location: various places .....
Posts: 7,187
Received 97 Likes on 65 Posts
Beaten to the answer

Never mind .. beers are on me.
john_tullamarine is online now  
Old 1st May 2009, 05:13
  #4 (permalink)  
 
Join Date: Oct 2008
Location: Brisbane, Qld
Age: 48
Posts: 226
Likes: 0
Received 0 Likes on 0 Posts
the 'IF' formula is an excellent one and is quite easy to use as long as you understand how the formula works ie:

- basic formula is =IF(what the test is,what you want to do if true,what you want to do if false).

so for the solution provided --> =IF(A1="","",B1)

what the test is --> A1="" ("" is what you put when there's a blank)
what to do if true --> "" (ie. show blank)
what to do if false --> B1 (show whatever is in that cell).

Give a man a fish...you feed him for a day. Teach a man to fish...you feed him for a lifetime.

clear as mud?
The_Pharoah is offline  
Old 1st May 2009, 11:02
  #5 (permalink)  
 
Join Date: Oct 2002
Location: The Coal Face
Posts: 1,297
Received 333 Likes on 127 Posts
Does anyone know if you can use IF to create a conditional format? The conditional format function only allows certain, simple arguments.
Chronic Snoozer is offline  
Old 1st May 2009, 11:18
  #6 (permalink)  
 
Join Date: Jan 2008
Location: Kabul, Afghanistan
Age: 40
Posts: 274
Likes: 0
Received 0 Likes on 0 Posts
But I would like excel to change the 4 digit numbers when I enter them in ATD and ATA to time format and the total actual time column get the difference of ATD and ATA and show me the total block time. how to do that?
AvEnthusiast is offline  
Old 1st May 2009, 23:37
  #7 (permalink)  
 
Join Date: Aug 2007
Location: Asleep on a bench
Posts: 40
Likes: 0
Received 0 Likes on 0 Posts
Format the cells correctly and it's a cinch

Aventhusiast,

Before you enter the cells you're entering times into, make sure you format the cells (Format menu > cells. In the "number" area, select "Time" and use the 24 hour format) as time numbers. Same thing for cells that you are going to use to calculate the time difference. Then it's just a matter of subtracting the ATD from the ATA and you have the time difference in time format.

When you're entering the times, just make sure they're in the right format, so for example, 20:25 rather than 2025. You can do it with the latter but you would have to use a different process. Also if the ATA is after midnight of the following day (e.g. departed 22:30, arrived 00:30), enter the ATA as 24:30 or you'll end up with a negative number. You can use a formula here to get around this if you want to, such as =if(ATA-ETA<0,ATA-ETA+24,ATA-ETA). Obviously, replace ATA and ETA with the appropriate cell references.

This is just how I do it. I'm sure there are many other ways.

Hope it helps.
Gen. Anaesthetic is offline  
Old 2nd May 2009, 10:38
  #8 (permalink)  
 
Join Date: Jan 2008
Location: Kabul, Afghanistan
Age: 40
Posts: 274
Likes: 0
Received 0 Likes on 0 Posts
Dearn Gen. A.,
Thanks for your inputs. I have already done that I mean I have chosen the format to date and time my point was the second choice if there are possiblities to enter 2025 and it changes it to 20:25 because now if you enter 2025 it changes it to a system generated time and and this all those 1904 date format things and ....
AvEnthusiast is offline  
Old 2nd May 2009, 11:58
  #9 (permalink)  
 
Join Date: Sep 2007
Location: nz
Posts: 10
Likes: 0
Received 0 Likes on 0 Posts
A work around is to enter the four digit value as text seperate them into hours and minutes using the left, right function do the calculations and rejoining them with =cell&"":""&cell
dueweno is offline  
Old 2nd May 2009, 21:52
  #10 (permalink)  
 
Join Date: Jan 2007
Location: Sydney
Posts: 286
Received 127 Likes on 36 Posts
morning.

Ill attach a copy of my latest excel logbook program when I get to work, it might be useful to go over as I've had to overcome all these hurdles myself
das Uber Soldat is offline  
Old 2nd May 2009, 22:03
  #11 (permalink)  
 
Join Date: Sep 2002
Location: La Belle Province
Posts: 2,179
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by Chronic Snoozer
Does anyone know if you can use IF to create a conditional format? The conditional format function only allows certain, simple arguments.
You can use the full IF function to create a "state" value and dump that in a convenient hidden cell. Then make the conditional formatting look at the "state value" cell. That way you're effectively using the IF functionality in the hidden cell to drive the conditional formatting.
Mad (Flt) Scientist is offline  
Old 3rd May 2009, 00:23
  #12 (permalink)  
 
Join Date: Jan 2007
Location: Sydney
Posts: 286
Received 127 Likes on 36 Posts
here we go;

Download Flight and Duty Times Ver 5.1.xls - File Qube

See if anything in there is helpful

edit: sorry password for unlocking all the tables to view the source is 'pprune'
das Uber Soldat is offline  

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



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

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.