# Excel 2007 :: Test For Existing Values

Nov 7, 2011

I have a workbook with several tabs. the first tab is a data input sheet: subtotals from this sheet get posted to cells on the other sheets. at the top of the Data sheet is a drop down validation list that the user will select the next month from. On each of the other sheets, is a grid with calendar months down the left hand side and years across the top:

Excel 2007BCDEFGHI26Incoming111009080727Month201220112010200920082007200628
JAN1201135317522050194029FEB1392150817082130217230MAR1538164117831823246831
APR1338132717301819211632MAY1485129615762008244933JUN14991380162618652028187034
JUL15491382166020362091170335AUG16531383148619252132197236SEP15901411155620051982214937
OCT23391324159420732014247738NOV1440146718842186282139DEC15631602203721472197Incoming

I am trying to figure out a simple method to check whether there is data on any of the four other sheets in the spot corresponding to the month selected by the user on the Data tab. the format of the validation list dates are dd/mm/yyyy in cell B2 on the data tab.

## Excel 2007 :: Index And Match Function With Logical Test

Feb 28, 2013

excel 2007. Here is the situation:

I am using the Index and Match function to lookup for two specific criterias in a different worksheet. So far, it is working well, but it gets complicated. I want to look for the criterias in 6 different worksheets based on what a certain column is saying. Here is an example:

A
B
C
D

[Code].....

So, if the continent is Asia in the column A, I want Excel to look in the Asia worksheet for the city and the venue and return me the contact information. Same, if the continent says Europe, I want it to look in the Europe worksheet or the city and the venue and return me the contact information. So on and so forth.

The formula I have at the moment is this:

{=INDEX('Asia'!\$1:\$1048576;MATCH(B3&C3;'Asia'!D:D&'Asia'!E:E;0);9)}

How do I incorporate the logical test for it to look for the proper worksheet knowing that all my continent worksheet have the same structure?

## Excel 2007 :: Can't Add New Sheet In Existing File

Jul 15, 2013

I am not able to add a new Excel sheet in a existing file when I right click next to the existing page it gives this option only and I am using Arabic Charcters + I am not having too many sheets

## Test Two Cells And Set A Third Cell With Different Values Depending On Test Results

Aug 21, 2013

I am trying to determine Long Term Gain (LTG,) Long Term Loss (LTL,) Short Term Gain (STG,) Short term Loss (STL,) or No Loss nor Gain (NGL)testing two cells (A1 and B1)and setting a third cell (C1) to the text LTG, LTL, STG, STL, or NGL depending on the results of testing cells A1 and B1.

A1 represent a number of years and B1 represent gains or losses (negative)in dolars.

The way I see the logic is as follows:

If cell A1 or cell B1 are either one of them equal to 0, then it is neither a Gain nor a Loss (NGL.)

If cell A1 is greater than or equal to 1, then it is Long Term; else, if A1 is greater than 0 and less than 1, then it is Short Term.

On the other hand, if cell B1 is greater than 0, then it is a Gain; if B1 is less than 0 (a negative number,) then, it is a Loss.

I need to find (if it is posible in Excel) one formula to test the two cells for posible outcomes:

If A1 = 0 then C1 = NGL
If B1 = 0 then C1 = NGL
If A1 >= 1 and B1 > 0 the C1 = LTG.
If A1 >= 1 and B1 < 0 the C1 = LTL.
If A1 < 1 and B1 > 0 then C1 = STG
If A1 < 1 and B1 < 0 then C1 = STL

## Excel 2007 :: Macro - Match Data And Copy Rows To Existing Sheet

Jan 11, 2012

I have a spreadsheet that I'm using to auto fill other tabs with data that only matches specific criteria. Here's what I'm looking to do:

Columns I, J, K, and L may be marked as either Y or N (or blank). I have different sheets that require 1, 2, 3, or 4 of those columns to match Y. For example, on sheet 2 I want to copy the entire row if there's a "Y" match on column I and J. On sheet 3 I want to match "Y" against, I, J, and K. Sheet 4 I need to match only L, etc.

I need the data copied into the existing sheets to start on row 7. I have other data on rows 1-6 that cannot be moved.

I'm running Excel 2007.

## Excel 2013 :: Replacing Values In Existing Functions With Newly Defined Names

Jan 6, 2014

I'm trying to simplify a spreadsheet i've been given by defining names for certain values. I'm using Excel 2013. Is there any way to have all of the newly defined names I've created for cells automatically be inserted into all of the formulas that exist in the spreadsheet?

Example.

Old formula in one sheet of a workbook looks up a cell in another sheet with the value of ='sheet1!A1

I've given the value of cell A1 in Sheet1 a name of dgwd.

How do I get every formula in the workbook that references 'sheet1!A1 to change the value within that formula to dgwd?

## Excel 2010 :: Macro To Copy 3 Cell Values And Append To Existing Database File

May 14, 2014

I'd like my macro (in an Excel 2010 workbook) to copy values from three worksheet cells and append them to an existing Access or SQL database file -- without having to leave my Excel spreadsheet or open any other programs. The database file simply needs to be appended. Keeping a running list. That file isn't being used for anything else, we can set it up however is necessary to do this.

For example, Excel cells A1, A2, and A3. Representing Job Name, Job Number and Job Total.

how make VBA do this(in SIMPLE terms)? Or give me a link of where to look or what to search for? I understand VBA but not Access or SQL.

## Excel 2007 :: Look Up Min / Max Values

Oct 23, 2013

I am working with excel 2007 in windows 7. I am working with small animals that have been outfitted with a RFID (radio-frequency ID) tags with unique UID codes. In a sheet called Tag_info I have a list of the unique UID's of the tags that are in use along with a number of parameters (the colony in which the animal with this tag is situated, if it was treated with something, its age etc). I left out most of the parameters because they aren't relevant to my question, but it looks like this with each UID only once in the list:

A
B
C

1
UID
Colony
Treatment

[Code] ........

In a 2nd sheet, a ton of data is saved by the scanners that read the tags as the animals pass by scanners in a number of locations. The relevant data for my problem is basicly the timestamp (UTCTime_Rounded). Since animals pass by the same scanners multiple times, and scanners may read the same 'passing' as multiple signals the column with UID's here contains tons of duplicates (unlike in the Tag_info sheet where every UID is only displayed once). Once again, I left out the irrelevant data for simplification so that the data looks like this:

A
B
C
D

1
UID
UTCTime_Rounded

[Code] ........

So finally, what am I looking for? I want a formula to look up the UID's from the Tag_info sheet to find and return the first and the last timestamp (UTCTime_Rounded) for that UID in the RFID_Scan_values sheet.

So that formula basicly has to return the min and max values for UTCTime_Rounded, for each of the UID's in Tag_info. The output would look like this (I did it manually for this dummy dataset since I didn't get any formula to work yet):

A
B
C
D

1
UID
Colony
Treatment
First scanned

[Code] ........

Tag info And then a similar column for the Last scanned, max values.

## Excel 2007 :: Sum 2 Values In Same Cell

Nov 12, 2012

Sheet1ABCDEF1THE SUM OF2GAME NUMBERSINDIVIDUAL 3GAME
NUMBER41101928=152112029=263122130=374132231=485142332=596152433=6107162534=7118172635=81291827369Excel 2007

Sheet1HIJKLMN12Last Nights Fantasy 5 Numbers3411/11/12051922293256sum of 7digits/#5142589pattern21110101112Full PkgAll Possible Patterns of 13CombinationsSum Of Digits1415129,0241111116193,536211101736,288221001816,12831100191,728320002028841000Excel 2007

Need a formula in Cols J7:N7 to return the sum of the values input in J4:N4 as a single digit. The table in the first image shows what the results should be.

## Excel 2007 :: Counting Unique Values

Dec 9, 2013

I am using Excel 2007

I have 50 000+ rows that covers fiscal years from 2006 to 2014 and I want to calculate how many unique clients are there per asset type per fiscal year. In addition, the results table needs to adjust to filters i would use on the raw data..

As:

2007
2008
2008

Commodity
45
FX

Other
other

Here is a sample file: SampleData.xls

## Excel 2007 :: How To Change DEFAULT Values

Mar 3, 2011

If I want to format a cell I go to that menu. Choose formatting number.

The default value will appear with 2 decimal digit.

I want to change it to 3. How can I do so?

Is it possible to change the DEFAULT values that Excel 2007 offers?

## Excel 2007 :: How To Sort Values Of Date

Apr 1, 2013

how to soft vaue of date in excel 2007. only arrange by date (not including month).

for examples:

it like that:
13/07/2012
15/01/2012
18/04/2012

## Excel 2007 :: Dynamic Sum Of Values In Every Fourth Row

Sep 29, 2011

I am using Excel 2007. I have a table with department names and the number of employees in each department. Currently, I'm using the formula :

=SUM(C12,C16,C20,C24,C28,C32,C36,C40,C44)

However, if another section is added to the database I have to update each formula. I'm looking for a way to get my totals no matter how many sections I add to the table.

## Excel 2007 :: Count Of Unique Values

Nov 18, 2011

I would like to get the count of unique values in my 2nd column using my values in 1st column as the criteria. Below is my example of my data set.

EFGH5DeptHC

6A304794A17B86122B38B86179C39B90050D1310C82705

11C94955

12C308165

[Code] .........

Excel 2007

I would like to see the count on column H (highlighted in yellow).

## Excel 2007 :: Sum Values From Set Range In 4 Different Files?

Jan 16, 2012

I have 4 different excel files in C:Reports (SupplierA.xls, SupplierB.xls, SupplierC.xls and SupplierD.xls) all with a page called "Summary" (like below) in a set range A2:F5.

Fruit
Monday
Tuesday
Wednesday
Thursday
Friday
Apples
2 4 1 7 8 Oranges
2 3 4 6 9 Lemons
4 5 6 6 6 Pears
1 2 3 5 5

I also have a summary excel file in C:Totals called "Supplier Totals" that has a summary page that I want to total up all my suppliers A, B, C and D (same as above A2:F2). How can do this in VBA?

I am using Excel 2007.

## Excel 2007 :: VBA Get Unique Values Set In Filter

Nov 29, 2013

[Excel 2007]. I'm trying to get the list of unique values from a Filter on a column in VBA.

I've given the column a Range Name

Code:
Dim rClient As Range
Set rClient = ws.Range("CLIENT_NAME")

Dim aClients() As Variant
aClients = rClient.???

There's nothing in the range method dropdown that obviously relates to the Filter on the range.

Is it something to do with the Table method?

## Excel 2007 :: VBA To Replace Formulas In Certain Cells With Their Values?

Nov 8, 2011

I am running Microsoft Excel 2007 on Windows XP. Right now, I have the standard macro set up that will replace formulas with their values. It's the standard macro that does this for the entire sheet:

Code:
Sub All_Cells_In_Active_WorkSheet_1()
With ActiveSheet.UsedRange
.Cells.Copy
.Cells.PasteSpecial xlPasteValues
.Cells(1).Select
End With
Application.CutCopyMode = False
End Sub

However, with this being a daily task, the issue is that this wipes the formulas out for future dates, which is obviously problematic. To be more specific:

I have one tab (HISTORICAL) with over 200 rows with each business day this year. Columns B through H will pull data from two other tabs (ENTRY1 and ENTRY2) that is entered daily, using a formula that tells Excel to only pull the data for the current date:

Code:
=IF(A224=ENTRY1!B1,ENTRY1!B2,0)

So each day, someone will open this sheet and input their data on the ENTRY1 and ENTRY2 tabs. These numbers will auto populate over to the HISTORICAL tab for that specific day.

Also on each day, someone else will open the sheet and go to the HISTORICAL tab and run the macro that converts the formulas on that sheet to the value.

I want to be able to run the macro only for the row with the current date (and any date before will be fine since those will already be converted anyway).

So, taking today for example, when I run the macro, I want it to convert the data only in the 11/8/2011 and previous rows, but NOT for the 11/9/2011 and later rows.

## Excel 2007 :: Changing Date Values Formula?

Apr 26, 2012

I work with several dates in Excel 2007. What forumula can I put in a blank cell that would change the below "Start Date" to 3/1/12 if the date displayed is less than 3/1/12? Also, if a cell in the "Start Date" column is blank, how can I populate a blank cell with a specified date value such as 3/31/12?

ShipPositionStart DateEnd DateBoard DaysBlankMASTER2/15/2012-40953BlankCH.MATE1/22/20123/12/201251Blank2ND MATE2/29/20123/31/201232Blank3RD MATE3/1/2012-40968BlankBOSUN3/5/20123/31/201227

## Excel 2007 :: How To Ignore Zero Values And Associated Julian Date

Jan 15, 2013

Using Excel 2007

I have a table of four columns

First column is the Julian Date 1-365

The others are summarys per Julian date

Some Julian dates don't have any date to summarize

When charting How can I ignore the zero values and the associated Julian date, without literally removing each and every row manually that has no data?

## Excel 2007 :: How To Filter Values In Pivot Table

May 31, 2013

In Excel 2007 is it possible to filter the "Values" in a Pivot Table?

I am tracking the Gross weight of shipping containers. My table sums the weight of all items in a container by container number. So my rows are 9 digit container numbers and my data values is a Sum of part weights. I want to be able to filter out containers above a certain weight.

for example:

Row Labels Sum of Gross Wt. - Lbs
10003150588929
10003153258700
10003155984958
1000315651530
10003156549761

I know I can simply copy and paste into a new tab and sort it there, but I'd like to be able to do it internal to the pivot table if that is possible.

## Excel 2007 :: Returning Values Based On Criteria?

May 17, 2014

I'm using Excel 2007

I have the below data in sheet 1

In a separate column on sheet 2 i want to return the value of the data in ACC1 if the data in DEB/CRED is LC or SC and the value of the data in ACC2 if the data in DEB/CRED is SD

DEB/CRED
ACC1
ACC2

[code]....

## Excel 2007 :: Union Of Values In 2 Columns To One In Increasing Order?

Jul 20, 2012

I have to find the union of 2 columns in excel and club those 2 columns into a single column with values in the increasing order.eg: column 1- 0 2 4.. , column 2- 1,3,5.. final result in column 3 should be 0 1 2 3 4 5...plz let me know the code for this that i can run in VB editor(- excel 2007)

## Excel 2007 :: Multiply Series Values On The Fly Before Presenting In Chart?

Jun 4, 2014

I would like to multiply a serie in 'series values' (before presenting on a chart) with a factor (in a formula like ='[1]name'!\$V\$2:\$V\$148)

in other words I would like to do something like
=('[1]name'!\$V\$2:\$V\$148)*50

but I don't seem to succeed with the correct syntax.

In Excel searching for "multiply series values" under "edit series" there is to read:

"Use this option to include additional data series on the chart or to modify the name and values of existing data series without affecting the data on the worksheet."

So what I want to do seems to be possible.

Excel 2007 version 12.0.6611.1000

I know I can create a temporary column with the multiplied values but THIS IS NOT the way I want to solve the problem.

## Excel 2007 :: Locate Peak Values In A Column Of Numbers

Nov 8, 2013

In the attached spreadsheet I would like to locate the peak values of the numbers in column "F". I don't know if this is best done with a series of functions or by using a macro.

Column "F" translates to the light blue line on the attached chart. Column "F" (MACD) is the difference between a 12 week exponential moving average (EMA) and a 26 week EMA.

I would like the peak values from column "F" re-stated into column J,K,L or M. Ideally I would like to find the highest peak that occurred in a rolling 12 weak period. So not all peaks would need to be posted. By doing this I would only be identifying longer trends .

I'm using Excel 2007. 25 years experience using Excel and functions. Limited experience with Macros though long ago I used to write C code.

## Excel 2007 :: Select And Separate Marked Values In The Sheet

Jan 7, 2014

I have spread sheet and values in some columns have highlighted in color.What I have to do is I need to quickly separate the highlighted data and put in the other spreadsheet.

## Excel 2007 :: Display Duplicate Values (Pivot Table)

Feb 13, 2012

I am trying to have duplicates and their corresponding data appear in my pivot table. Assume I have a list of over 1000 stores. Let's say store 101 appears twice in my data file.

When I create my pivot, the 101 only appears once and the data is consolidated. Is there a way to ungroup/display duplicates?

## Excel 2007 :: Loop Expression Won't Recognize Values Are Equal?

Apr 20, 2012

(Excel 2007) The issue I'm having is that a loop statement of mine is failing to recognize that a couple values are equal. It works for the first 3 iterations of the loop, then stops recognizing. I tried copying another set of numbers in the failing one's place, and that actually worked. I can't attach anything, so I'm including a link to a detailed screen shot with some notes on it and code that I'll host on my site. Not sure how else to explain the issue, but if you take a look at the screen shot you can see the excel sheet being worked on and the vba code running. I will also include a text file of the code

Here are the links to the screen shot and text file of my code
Text file
Screen Shot

## Excel 2007 :: Conditional Formatting Based On Two Previous Values

Feb 19, 2013

I'm creating an excel document that tracks the amount of time someone has (in months) in the program. Certain residents are able to 'fast track' if they meet conditions, and I am trying to create this spreadsheet so that anyone who looks at it can tell who qualifies (and when).

The issue I'm having is with conditional formatting, because I don't know how to do it with mutliple conditions.

Column C is their previous time (months) in the program
Column D is their current time (months) in the program
Column E is their total time in the program (Sum C+D)

Coumn E is what I would like to format, based on the following rules set out in the program manual:

If previous time is 9 months or more, a resident is eligible to fast track after 6 months current time (format green).
If previous time is less than 6 months, a resident is eligible to fast track after 9 months current time (format green).

I understand that their is an odd gap - but these are the rules currently set out by the program manual, which is what I have to follow.

I'm using Excel 2007 - if that changes anything.

## Excel 2007 :: Extracting And Adding Values From Within Text Strings?

Jun 2, 2013

I am trying to extract values from a text string and add them up in Excel 2007. So far i have been successful in extracting the value out of the text string like this - =MID(I6,AD6,3) where AD6 holds the position number in the text string to start from. So it's working OK for one row but i need to do the same thing on multiple rows where the text string can be in different columns and I'd like it to automatically pick up the non-blank cell.

each row only has one column with text in it and the value i need to extract is always after "\$". this is a working spreadsheet so the text string could move from column to column over time and I'd like my formula to be able to detect which column to read from. I then need to add up all the values from each row.

## Excel 2007 :: Cell Color Change Based On Values (Range)

Oct 2, 2011

How to change the background cell color based on value ranges(s)

I tried conditional formatting but it works between two values only, in my assignment I want to show:

River levels in relation to flood class
>=2m =2.6 =3m major flood (background turns red)

I hope it is possible in Office 2007