If & And Formula: Show The Difference Between Col F And Col G

Mar 14, 2007

if the cells in column E AND column F are blank, then column G will be blank also (I dont want 0 showing), if not show me the difference between col F and col G.

I put in the following:-

=IF((E2="")AND(F2=""),"",E2-F2)

However, Excel informs me this is wrong and corrected it as

=IF((E2="")*AND(F2=""),"",E2-F2)

I guess my question is why do I need to put in "*" for this to work?

View 5 Replies


ADVERTISEMENT

Formula To Calculate Time Allotted Minus Time Used And Show Difference In Hour And Minutes?

Apr 27, 2014

Formula to calculate time allotted minus time used and show the difference in hour and minute.

View 1 Replies View Related

Lookup (V?) To Clearly Show Difference

Jan 26, 2010

how to create a macro of some sort that will look at a list of data in cloumn A and in Column B then tell me the values of data that is in A but not in B then also tell what is in B that isnt in A. I understand that 2 vlookups will prob do this but i would like it more user friendly so the way i would like it...........

is for me to paste a list of data from 1st source to column A
then, a list of data from 2nd source to column B

then click a button that would do a lookup from column A against B (and B against A)

and return the values on sheet 2

that way... users could look on sheet 2 and anything in column A would be data that was in column A in sheet 1 but not in B and the data in cloumn B (sheet 2) would be the data that was in column B on sheet 1 but not in A.

View 2 Replies View Related

Compare 2 Different Columns-show Difference

Jun 3, 2007

I'm looking at trying to view 1 large keyword phrase list of about 40,000 phrases to another large list.

All I want is a macro, I can assign a button to. Click it and in a new sheet it shows only the rows of data that are different.

I have tried googling it.

I found 1 that looked very good (Not that I really know anything about coding, but I couldnt get it to work.

I'm using excel 2007.
As a note the link was here.
[url]

I might as well post the code,, but I just couldn't get it to work, shame, because it sounds like it could be what I was after, I'll post it now, but if anyone can help me with this that would be great

Sub CompareWorksheetRanges(rng1 As Range, rng2 As Range)
Dim r As Long, c As Integer
Dim lr1 As Long, lr2 As Long, lc1 As Integer, lc2 As Integer
Dim maxR As Long, maxC As Integer, cf1 As String, cf2 As String
Dim rptWB As Workbook, DiffCount As Long
If rng1 Is Nothing Or rng2 Is Nothing Then Exit Sub
If rng1.Areas.Count > 1 Or rng2.Areas.Count > 1 Then
MsgBox "Can't compare multiple selections!", _
vbExclamation, "Compare Worksheet Ranges"
Exit Sub

View 9 Replies View Related

Show Percentage Difference Between 2 Columns

Sep 27, 2006

I have a spreadsheet which has a number of columns populated with a day number and below each day number there are some numbers. What I would like to do is to compare the values for Day1 with Day2, Day 2 with Day 3 etc. Is there a smart way to do this using VBA? I am enclosing an example to show what I would like the macro to do.

View 8 Replies View Related

Show The Time Difference Between Two Data Entries

Dec 4, 2009

I have data entry in a spreadsheet which shows minutes, seconds and thousandths of a second - example looks as follows:
12:48:589 or 04:21:998. I would like to be able show the time difference between two data entries, so for example:

09:57:145 and 08:12:055 would give a difference of 1:45:090
12:07:985 and 18:59:788 would give a difference of 6:51:803

To be honest, I even struggled to work out the values on paper. Is this even possible? If so, can you let me know the number format I should be using as well as the formula or even better, post an excel sheet with the example.

View 3 Replies View Related

Show In Message Box Difference Between Two Rows On Same Worksheet

Jul 29, 2014

How to show via a message box the difference between rows 2 and 3 on a worksheet (row 1 is headers).

In the message box per the attached workbook, i should only see something like the following....

Drawing Rev was A is now B
Planner was Joe is now Fred

The attached example is abbreviated, the actual data will span multiple columns (approx. 30 - 40)

View 7 Replies View Related

Comparison Between 2 Columns Of Data And Show The Difference?

Mar 10, 2014

I'm interested in comparing the 2 columns of data as attached in the SampleData file, for eg. First customer bought 5 items and customer 2 bought 3 items. I'd like to show the difference which customer 1 bought and customer 2 did not buy. Will need to use that via VBA And also for loop if possible!

SampleData.xlsx

View 6 Replies View Related

Show Difference Characters By Making Them Bold

Jun 22, 2012

I've two columns of numbers in Col J and Col P how can I make cell P2 characters that are not in J2 show the difference by making them bold

J2 = 00342 P2 = 0034211

J3 = 00344 P3 = 003443

J4 = 233 P4 = 23377

Till last row with data in the sheet.

View 9 Replies View Related

Show Exact Time Difference In 2 Cells

Jul 4, 2012

I have 2 cells in which time is given in format hh:mm:ss , I have differentiated both whatever difference is their between them it get showed in different cell , but my cell is not showing exact time difference its showing up as ######.

View 6 Replies View Related

Show Rank And Difference In Adjacent Cells

Aug 24, 2007

I"m looking for a formula that searches for sales from a sheet (that already has the sales ranked) and populates that into another sheet. But the 3 cells above/below would have the difference in sales.

Rank
1.
2.
3. Rank3-MySales
4. Rank4-MySales
5. Rank5-MySales
6. MySales
7. Rank7-MySales
8. Rank8-MySales
9. Rank9-MySales
10.

So something like this:

Rank
1.
2.
3. 3500
4. 2700
5. 950
6. $5000
7. -1200
8. -1550
9. -2400
10.

View 9 Replies View Related

Custom Number Format To Show Difference In Two Dates

May 11, 2006

I'm trying to get an excel custom number format to show the difference in two dates as 0 years and 0 months...for e.g.

Cell a1 = commencement date = 1/1/05

cell a2 = expiration date = 12/31/10

Then cell a3 = Lease Term = 6 years 0 months.

View 2 Replies View Related

Show Values As Percentage Difference - Quickly Change From Month To Week

Dec 18, 2013

I have a Pivot Table with fields for months and weeks. I also have a "Show Values as % Difference Field" that shows monthly or weekly % change. When I collapse the fields so that it goes from weekly to monthly (or vice versa), I have to manually change each Show Values As % Difference column. Is there a way to do this automatically or quickly?

View 1 Replies View Related

Cell Value Matches Value From Sheet1 - Compare Number From Cell2 And Show Difference?

Apr 26, 2014

Sheet1 is Main Sheet which never will be amended and these numbers will be a source for pulling mathematical functions

See attached :
Sheet1.png

Don't be bothered about cell colors etc. They are for my reference

Sheet2

Will contain same Problem Ticket numbers but different (or same) values with number of 'Linked Incidents'
See screenshot
Sheet2.png

Based on Problem ID 10248
Main sheet shows 92 Linked Incidents
Value on Sheet two brings 93

If A5 Sheet2 value can be found in ColumnA Sheet1, look for a number in ColumnC, same ROW and compare it to C7 in Sheet2 ?

Bring up difference value, which in this case would be one.

View 1 Replies View Related

Time Difference Formula?

Jul 3, 2014

A
B
C

1
Time 1
Time 2
Result

2
8:00
7:30
-0:30

View 3 Replies View Related

Formula For Difference To Next Rebate Level

Feb 17, 2014

I'm building a sales report that has various formulas to work out rebate percentages based on the number of units.

I've written the if statements for these but how to get formula to work out the number of units required to achieve the next highest rebate level.

rebate levels

>=150 units= 1% rebate
>=300 units =2% rebate
>=600 units =3% rebate

column I has the unit totals and in column M I need to have a formula to work out how many units the customer would need to purchase to achieve the next rebate level. Headers are row 1 and data begins in row 2.

View 3 Replies View Related

Formula To Find Out The Date And Day Difference

Jul 17, 2006

Can you share the formula to find out the date and day difference. Foe example ( from :Thu 06-Jul-06 11:59 AM TO Mon 10-Jul-06 11:56 AM)

I have the dates is the same formate as shown in example.

View 9 Replies View Related

Formula For Working Out Top X Of Date Time Difference

Feb 24, 2014

1.The attached file shows an example extract of a data extract that has thousands of lines. See the Data Tab.
2.What I need is some time that has passed between two dates in a DDHHMM format
3.What I then need is the top 50 of each of the times (or the longest time past)
4.The column headers will be: WO Number | Contractor Name | Time Calculation – see the various Report tabs
5.The calculations in the Data tab are between the following columns.
a.Difference between Column Z and Column AC
b.Difference between Column AC and Column AD
c.Difference between Column AD and Column AE
d.Difference between Column AE and Column AF
6.Is it possible to show the top 50 only in time?

This report is forming a part of a larger report and all other formulas are already present so I am hoping to keep the file size quite small. The aim is to then hand this over to someone else to just print on a monthly basis depending on the data that gets added with minimum input.

View 2 Replies View Related

Comparison Formula To Return Difference In Quantity

Nov 13, 2013

i am comparing 2 inventories, they contain the same information. I have included these on 1 sheet

Column A: Part numnber Inventory 1
Column B: Stock number Inventory 1
Column C: Quantity Inventory 1

Column E: Part numnber Inventory 2
Column F: Stock number Inventory 2
Column G: Quantity Inventory 2

I need a formula that says: If column B = column F, return the difference, if any, of Coulmn C - Column G to Column H

The data is not going to be inline, so B1 is not necessarily going to = F1

View 2 Replies View Related

Formula To Calculate The Difference Of Time Between Cells

Feb 17, 2008

I'm working in excel2007:

I want to write a generic formula to calculate the difference of time between cells, the first being a real data point, such as

6/22/2007 8:53

minus a generic constant term using the same date and a given time, 8:30.

So, what I need is something like this:

6/22/2007 8:53 – (same mm/dd/yy @ 8:30)
6/22/2007 12:29 – (same mm/dd/yy @ 8:30)
6/25/2007 11:19 – (same mm/dd/yy @ 8:30)

View 9 Replies View Related

Formula To Calculate Percent Difference Between Last 2 Columns

Feb 14, 2007

See attachment. In this example, in Column D I want to calculate the percent difference between the numbers in the last 2 columns (Column B and Column C). BUT I want a formula that will automatically update if I were to insert a new column between Column C and Column D. So as a result, new numbers would go in Column D and the percent difference would now be in Column E.

View 2 Replies View Related

Time Difference Formula Where Both Times In 1 Cell

Aug 14, 2007

I need some IF formula I believe that will yield an answer between 1 - 5. I'm not swavey enough with these things to figure this one out... trust me I tried and it keeps getting more confusing for me.

If the time worked is between certain time criteria then it would equal 1 - 5 depending on the time.

Example: If I work between the hours of 5am and 1pm then I would be in the Open/Mid range and would need to equal 2. If I only worked a few hours and my hours fell only between the Mid range then it would equal 3.

Then based on that... It would automatically fill in on the deployment charts... My name would show up on the Open and Mid Deployments under the task chosen for me to do that day.

I've attached a small sample of what I am looking for to kind of help show what I need. The highlighted areas are the areas I'm not sure how to do.

View 9 Replies View Related

Multiple Condition Time Difference Formula

Oct 10, 2007

A person spends some time performing various works (work1, work2...) in a day. Each work can be further divided into tasks (task1, task2...).

I need to find the total time spent by the person doing all these activities.

The attached spreadsheet will explain it better.

View 3 Replies View Related

Calculating Time Difference Between Two Days Combined With IF Formula?

Jan 30, 2014

I am using the following formula in Column E to calculate the difference between an employees start time, and their previous shift end time in order to work out how many hours rest they have had:

=IF(A4=0,"",IF(I4=0,"",MOD(I4-B4,1)))

My Current Formula works fine for same day calculations, but if an employee finishes work at 18:00 on Friday and starts work at 22:00 Saturday night, Excel calculates the Total Rest hours as 04:00, when in fact they have had 28:00 hours rest...

Is there a way of calculating the hours difference between two dates?

I have attached a sample of my spreadsheet to illustrate

View 5 Replies View Related

Conditional Formula: Calculate The Difference In A Date Between Two Dates

Jan 28, 2009

I'm trying to make a formula to calculate the difference in a date between two dates. For exaple, in my business we have a due day for something. So the due date could be Feb 10, we need to know if it was done on time, late, or early. So I've gotten it to display late by doing this: =IF(B2>A2, "Late", (A2-B2)) But then I can't figure out how to incorporate this: =IF(B2=A2, "On Time") or =IF(B2<A2, "Early").

I would like to displaly this all in one cell. So if the due date is Feb 10 and it's turned in Feb 8 it's early, turned in Feb 10 it says on time, turned in Feb 11 it's late. I also tried this but it didn't work: =OR(IF(B2>A2,"Late")*IF(B2=A2,"On Time")*IF(B2<A2,"Early"))

View 3 Replies View Related

Formula For Date And Time Difference Using 8am-5pm Work Hours

Oct 22, 2008

I need to enter a formula that calculates the time a report is received from the time it was recorded in our database. therefore, it needs to exclude non working hours. here are the fields:

A1 2008/10/10 16:30
B1 2008/10/11 09:30
C1 8:00
D1 17:00

A1 = report received
B1 = reported recorded in db
C1 = work day start time
D1 work day end time

Where the answer should = 2 hours.

I am not an experienced excel user and so far the only formula I have now is: =TEXT(B1-A1, "d:hh:mm")

And how do I account for weekends?

View 9 Replies View Related

Formula To Find Two Cells Based On Dropdown List And Then Workout Difference?

Jun 5, 2014

I have a list of Names that has numbers accumulated over months. I am looking for a formula to use in a search tool that uses a drop down list to identify the name I am looking for and then the formula will show me the increase that happened in certain months.

See the attachment the result is coming from Denominators tab, I want the answer displayed in the Display tab, you will see a drop down list at C3 in Display, I am trying to show the answer in cell D9-I9.

how many the denominator has increased in that month. so for D9 it will come from denominator tab column c minus b, E9 will be d minus c

View 9 Replies View Related

Formula To Show Formula From Another Cell?

Jan 14, 2014

does such a formula exist? I regularly Change a formula in cell C1. To Show my working I would like to have The formula from C1 written next to it as an equation.

Example: B1 | C1
=Text"updated from formula in C1 automatically" | =x+y*A2

Summarised, is there a formula to Display the formula written in another cell?

View 2 Replies View Related

Excel Formula To Calculate Difference In Times But Only Between Specific Times

Apr 8, 2014

I'm looking for a formula that will calculate the difference in times between specific times while working with a 24 hr clock. Please see details below:

E3 provides the start time of 4:00
H3 provides an end time of 15:30

If an employee works betwen the hours of 0:00 (midnight) to 5:59, this is considered DIFF hours and is therefore the number I am seaking. So for the data noted above, the total DIFF hours worked is 2 hours.

View 7 Replies View Related

Getting A Formula To Show Zero Until It Is Used

Aug 4, 2009

I have used excel to create a set of timesheeets and a total page, on the total page there is a column that will show you any varience on your hours each month (I.e if you have worked overtime or under your hours)

I have used the formula =(worked+hours+sick)-(weekly hours*week in month)

This works fine the only problem is in shows a minus number until the hours for that month have been entered so I cant create a total column, is they any way to get these numbers to show 0 until the times are entered?

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved