If Funtion Is Not Working When Comparing ROI

Sep 11, 2009

I created a spreadsheet to calculate property "Return on Investments" (ROI). I then added a column with the If command. Here is an example formula:

=IF(AND(G12>=G4; G12>=G5; G12>=G6; G12>=G7; G12>=G8; G12>=G9; G12>=G10; G12>=G11; G12>=G13; G12>=G14; G12>=G15; G12>=G16; G12>=G17; G12>=G18; G12>=G19; G12>=G20; G12>=G21; G12>=G22; G12>=G23; G12>=G24; G12>=G25; G12>=G26; G12>=G27; G12>=G28);"Buy!!";"--")

I dont know if it matters but the ROI is a very small decimal percent. However I found that when 2 properties get close the "Buy!" symbol dissapears from all cells. I have compared all the formulas and found no issues.

I have attached the file to this post

The issue occurs when 1750 is but in cell B12. I have narrowed the issue to cells A6 and A10.

=IF(AND(G6>=G4; G6>=G5; G6>=G7; G6>=G8; G6>=G9; G6>=G10; G6>=G11; G6>=G12; G6>=G13; G6>=G14; G6>=G15; G6>=G16; G6>=G17; G6>=G18; G6>=G19; G6>=G20; G6>=G21; G6>=G22; G6>=G23; G6>=G24; G6>=G25; G6>=G26; G6>=G27; G6>=G28); "Buy!!"; "--")..............

View 3 Replies


ADVERTISEMENT

Comparing Lists, Formula Not Working

Feb 18, 2010

I have 2 lists. One column has a about 200 values of 7 digit numbers. The second column has about 500 cells with text. This text should include one of the 4 digit numbers from the first list. If it doesn't, I want to purge it.

The 7 digit numbers always appear in the same spot in the column 2 figures. So say the number I'm looking for is 1122 and the second list has a cell with L2871122BD. Perhaps there is an easier way to do this, but my plan was to.

create a 3rd column that has formula =mid(B1,5,4) which should isolate the 4 digit value i want to compare to. Then create a 4th column that has the formula =ISNUMBER(MATCH("*"&C1&"*",A:A,0)) to check the newly created MID number to the numbers in column one. Afterward I would simply arange from small to large and delete all of the false entries in column 2.

The only problem is, my ISNUMBER function doesn't work when referencing from my MID formula to column 1. If I do the match and compare the smaller number in column 1 to the larger in column 2, it does work. Is there an easier way to delete or highlight entries in Column 2 whose middle 4 digits don't show up in column 1? Here is an example of what I'm working with.

View 2 Replies View Related

Len Funtion

Apr 25, 2006

Range("A1:F50").select

If Len(Cells.value) > 40 Then
activecell.clearcontents
End If

View 5 Replies View Related

Countif Funtion For More Than One IF

Mar 30, 2009

If I have column A with a department name e.g. A, B, C, etc
and
column B with a date next to the some of the entries of column A.

How would I compose a formula to return an answer of the amount of records that show column A as "A" and column B as "1".

This is probably immensely simple and I have a wet fish on standby to hit myself with.

View 6 Replies View Related

ISERROR Funtion Into An IF AND Statement

Sep 23, 2009

I am trying to nest an ISERROR funtion into an IF AND statement.

Column B D E F
Cases Case Pack Reg Price VPR Price
1 14 2.25 0.00
1 14 1.75 2.00

When the value of F is zero, I want the formula to be B1*D1*E1, when the value of F is not zero, I want the formula to be F1*D1*B1. I can figure this part out. The problem is I have these values on a certain number of rows and I want a grand total at the bottom, but the rows that do not have values in them are giving me a #VALUE! error, which is messing up the grand total. I am not sure how to write the formula with the IF AND and ISERROR functions.

View 7 Replies View Related

Sum Product Funtion Within A Date

May 11, 2007

I have a column that lists names, and I need to count how many there are for each name, sounds easy enough use the following i think.

=SUMPRODUCT((A1:A10="Joe")

The trick is, I only want it to sum them if it's within the current month. I am entering something wrong because I get an error message.

View 9 Replies View Related

Auto Chart W/IF Funtion

Feb 2, 2008

Chart updates correctly when new pricees added.

But my IF function in column C leaves the annoying line to zero until prices are enter in column B.

View 9 Replies View Related

Creating SUMIF Funtion

Jun 30, 2009

I am looking for the exact code to make a "SUMIF" function so that I can modify it to add another search criteria, such that I only wan the sum if it finds both in the range.

View 9 Replies View Related

Funtion/Code To Rename A Sheet/tab

Dec 13, 2007

Is there a function to do this or only VB code?

View 14 Replies View Related

How To Return Value From VBA User Defined Funtion

Nov 26, 2009

how to return value from VBA User Defined Funtion

View 9 Replies View Related

LIST Funtion: Find The Highest Number ?

Jul 30, 2008

I have several worksheets where I input data, and I would like a 'stats' page as worksheet 1. Work sheet one is a list of names in cells A4:A28. column B,C,D,E,F, and G contain the results using Countif. How would I now get excel to look down a column, for example B, to find the highest number in that column and then use the name from that line but in column A.

View 3 Replies View Related

Incorporate Concatenate Funtion: Return Text Rather Than A '0'

Apr 2, 2009

I have the following formula: ...................

and excel is saying I used too many characters and to use the concatenate function to do so, but I have no idea how.

I wanted to return text rather than a '0' in the case that all the original IF statements were false, I threw another IF statement in there and said if the original is equal to '0', then return "-". If not, then run through the original again (I pasted the original again after the "-").

View 3 Replies View Related

Macros That Were Working In Excel 2003 Are Not Working In 2007

Jan 25, 2010

I have a workbook in excel 2003 which I had been running the following macros (listed below). We recently upgraded to Excel 07, and neither are working. When I try to run them, the "debug" option highlights the following line in the sort macro "Range("A2:z" & lastcell).Sort key1:=.Columns(1)". This is driving me crazy, as the macros worked perfectly under the older version of Microsoft. Is there an issue with crossfunctionality between '03 and '07'.

Private Sub Worksheet_change(ByVal target As Excel.Range)
If target.Column = 1 Then
ThisRow = target.Row
startRow = 1
i = 1
Set ws = ActiveSheet
maxRow = Cells.SpecialCells(xlLastCell).Row
maxCol = Cells.SpecialCells(xlLastCell).Column
ActiveSheet.UsedRange.Interior.ColorIndex = xlNone
Do While i

View 9 Replies View Related

Working Day Function: (Day + Next 1st Working Day)

Aug 27, 2009

I was looking for a final result as follows

21-Aug-09 + 1 = 24-Aug-09 (Day + next 1st working day)

21-Aug-09 + 3 = 26-Aug-09 (Day + next 3rd working day)

View 2 Replies View Related

Comparing 2 Timestamps?

Jan 22, 2014

Attached is an example.

I get data pulls of logged in time, and shift start times.

Example in column C the person's actual login time is there, and column D has their start time. If there's a variance of 'x' how could I have column E display the variance? In this example 15 minutes?

Basically, if there's a difference between the 2, I need a formula that tells me what difference is.

Attached File : Login Time.xlsx‎

View 3 Replies View Related

Comparing Two Tables

Jun 10, 2008

I have one .xls file that contains an inventory list of all the products that I want.

Unfortunately this .xls file does not contain the prices for these items. I have another .xls file that contains SKU numbers and the prices related to those SKU numbers.

Is there a way to run every single SKU in the first file against the second file and, when a match is found, take the entry in the price column of the second file and place it in the first file so that my first .xls file contains all my products with prices?

I included sample data.

View 12 Replies View Related

Comparing 2 Values.

Nov 5, 2008

Comparing 2 values.

I need to compare the value's on 2 cells. I have a sheet setup for my sales I would like to compare each day of the week. So in other words I would like to compare this Monday with last Monday and know what the percentage of my sales ether up or down is.

Example:
Last Monday = sales $100.00
This Monday = Sales $200.00

100%

So If sales are up I would like the percentage amount font to be in green. But if sales are down I would like the percentage amount to be in red.

View 2 Replies View Related

Comparing The Cells

Apr 6, 2009

I have two spreadsheets I would like to compare against each other, last weeks inventory (Sheet 1) and this weeks (Sheet 2). All items are listed by unit number, is there a way to have all unit numbers on Sheet 1 colored red that are not on Sheet 2 and vice versa?

View 5 Replies View Related

Comparing Two Cells

Nov 16, 2009

Is there a way to compare two cells and return true if they are the same, false if different? There is text and numerical data. As a side note, can anybody recommend a lightweight reference so I can sit for an evening or two and at least get an idea of what excel can do?

View 3 Replies View Related

Comparing Strings ..

Mar 30, 2009

I have two string that I want too compare.

String 1 could be something like channel_0_user_defined._system
string 2 could be channel_0_user_defined

I want too compare string2 with string 1 at the left side of string 1.

I don't really know what I should use I found startswith, but vba doesn't have this particular function.

View 12 Replies View Related

Comparing The Lists

Jun 9, 2009

I have two Excel lists. One master list (list A) contains all our email addresses from our customers. The other list (list B) contains a list of people who do NOT want to recieve emails. How do I take the emails from list B (there are 1,200 of them) and compare them automatically to list A? Basically if any email address from list B appears in list A, I want it to delete in list A.

View 6 Replies View Related

Comparing Value Between Worksheet

Sep 15, 2009

i have two worksheets. group and search. in group sheet it contain are groups of club & nation. in sheet2 when click the button find it will prompt player name. for example,when i put torres it will tell us that he belong to Liverpool club & Spain.

View 5 Replies View Related

Comparing Then Adding

Sep 14, 2008

say i have 4 columns of 5 values each consisting of 0's and 1's.

...a b c d
v 0 1 1 1
w 1 0 0 1
x 1 1 1 1
y 0 0 1 0
z 1 1 0 0


how would i write a function that would compare each value under column 'a' to each value under column 'b' and then return a value of 1 if they are equal, and return a value of 0 if they are not equal, then add up the return values.

(comparing column 'a' with 'b' you would get a result of 3.) then have the function continue on to compare column 'a' with column 'c'..'d; comparing column 'b'..'d', etc

so in long form: IF(av=bv,1,0) = 0
IF(aw=bw,1,0) = 0
IF(ax=bx,1,0) = 1
IF(ay=by,1,0) = 1
IF(az=bz,1,0) = 1

SUM(IFs) = 3

View 13 Replies View Related

Comparing Two Lists?

Apr 3, 2012

I have two lists of data and am trying to write a formula that will return a "1" if the second list firstly contains one or more entries that are not in the first list and secondly the fourth cell on the same row of one or more of the entries not in the first list contains an "F".

The first list is in a sheet called "Select" cells J2:J7 and the second list is in a sheet called "Model" cells A2:A50. The second list will occasionally contain blank cells.

I have tried to use a combination of COUNTIF and VLOOKUP but am struggling to make any progress.

View 2 Replies View Related

Comparing Two Columns

May 5, 2014

1) if Column M has the value "School" then corresponding value in column N should have oly "Bus","Subject","Teacher". if values in Column B other than "Bus","Subject","Teacher" then the cell should populate RED Color.

2) if Column M has the value "College" then corresponding value in column N should have oly "Box","Madam","World". if values in Column B other than "Box","Madam","World" then the cell should populate RED Color.

View 5 Replies View Related

Comparing Value To Three Groups

Mar 2, 2007

Here's one:

Column C (starting at C6) contains the team number. I want column B to find out if the team number is an AM, Mid or PM team.

I have listed the AM teams at J1:U1, the Mid teams at J2:K2 and the PM teams at J3:V3.

How can the formula in column B search those ranges and determine if the team in column C is AM, Mid or PM?

View 9 Replies View Related

Comparing 2 Reports

May 26, 2007

Files :- [url]

i have upload 2 worksheets (in a zip file)

i have attached my 2 files,

1 is report of Feb 2007 & other is March 2007

on 1 Branch,

i got 200 Branches reports & i have to compare the people recored and have to identify following things

1) in which Days bukket is fall in Previous report ( compare with current)
2) if the Account # doesnot match then it should be HIGHLighted!

what i have to do is to compare the Account # with Previous & add a New Column & write the previous days (in number) plus highlight or show some remards that doesnot exisits in last report,

View 11 Replies View Related

Comparing Days In VBA

Jun 29, 2007

Using VBA, I would like to compare the date found in Cell(datRow, colIndex) of the Recap workBOOK to the date found in Cell(varRow, 3) of the Deduction workBOOK.

I loop through several Recap workbooks, one for each month. The problem I am encountering is this: If the date(s) found in the Recap workbook are before the date(one date) found in the Deduction workbook, the procedure will add the value of data below it to a running variable total.

However, what I am Needing, is for the value only to be added to the total IF the DAY of the date found in the Recap workbook (not the entire date) falls before the DAY of the date found in the Deduction workbook.

I know this is lengthy, but I have researched this for hours and am finding little to help me. Is there a function used in VBA to compare only the day of a date? And can I use a conditional IF statement such that execution happens when Cells(varRow, 3).Value > Cells(datRow, colIndex).Value even though the cells reside in different workbooks (both are open during processing)?

View 9 Replies View Related

Comparing Two Worksheets ....

Sep 8, 2007

have been trying to write a VB macro to compare two spreadsheets. Here is what I need help achieving....

Compare Sheet1 and Sheet2. Data exists in rows that have a unique identifier in one column.

If unique ID (with row of data) exists in Sheet1 and NOT Sheet2, add row from Sheet1 to Sheet3 and mark "REMOVE" in new column next to row.

If unique ID (with row of data) exists in Sheet2 and NOT in Sheet1, add row from Sheet2 to Sheet 3 and mark "ADD" in new column next to row.

If unique ID (with row of data) exists in both Sheet1 and Sheet2, take row from Sheet2 and place in Sheet3 and mark "UPDATE" in new column next to row.

View 9 Replies View Related

Comparing Two Lists ..

Oct 1, 2007

I have two lists in the same sheet. List one spread over 3 columns contains all the possible postcodes available to my job, the second list once again over 3 columns contains all the postcodes my job is currently using.

How can I find out the Postcodes that I am not currently using from the available list. I am sure it is a simple Lookup command, but cant for the life of me figure it out.

View 9 Replies View Related







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