Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Hi, I am trying to devise a form that will calculate travel expenses. Users will input their mileometer readings (the start and end readings) in L4 and N4 respectively.In cell G4 users will input their reason for travel, either 'Travel between sites' or another reason. If the string in G4 is 'Travel between sites' then the formula (N4-L4) should return the result in P4 (entitled Business Miles). If the string in G4 is anything else the result should be returned in T4 (Home to base). I do not want 0 values for blank values in L4 and N4 to show on the form so I have got: =IF(ISBLANK(N4),"",N4-L4) Can anyone suggest a way of achieving both goals, ie keeping blank cells empty AND checking the string in G4 to return a value (N4-L4) in either P4 or T4? Any suggestions gladly received :) -- Marie1uk ------------------------------------------------------------------------ Marie1uk's Profile: http://www.excelforum.com/member.php...o&userid=20984 View this thread: http://www.excelforum.com/showthread...hreadid=546141 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Property Let: assign return value of Double when passing String | Excel Discussion (Misc queries) | |||
Conditional Formatting when inserting a row | Excel Worksheet Functions | |||
Looking up a string of text within a string of text | Excel Worksheet Functions | |||
Auto convert an alphanumeric string (CIS9638S) to numbers only? | Excel Worksheet Functions | |||
Updating master workbook from source that may/may not exist | Excel Worksheet Functions |