Function To Compare Multiple Cells And Provide A Result..

Jan 6, 2010

I need to look at 2 different cells and have a 3rd cell provide a number based on the first two cells.

Column A: either 1 or 2 (2 results in +5)
Column B: either yes or no (yes results in a +5)
Column C: function would result in either 0, 5, or 10.

View 3 Replies


ADVERTISEMENT

Using IF Function To Compare Multiple Cells

Nov 27, 2013

I want the function to return a value in A1 based on the values in B1, C1, or D1.

For instance:

If B1=1, then A1=Confirmed,
if C1=1, then A1=Ordered,
if D1=1, then A1= Confirmed.

My attempt:
=IF(B1="1","Confirmed",IF(C1="1","Ordered",IF(D1="1","Confirmed")))

I realize this is a nested IF function, and in this case does not seem entirely appropriate, evidenced by the circular reference warning.

View 4 Replies View Related

Recorded Macro Doesn't Seem To Provide Expected Result

Sep 21, 2009

On column A, I simply do an A-Z sort that gives the expected result. So I recorded it as a macro. In column G is a code that corresponds with column A. When the marcro is executed Column A is sorted but the corresponding value in G stays where it is. Clicking the A-Z button works. But when that action is recorded as a macro I get the above quirck. Since VBA is not my beef, I don't really know what wrong.

View 4 Replies View Related

Compare Multiple Conditions To Calculate Result

Jul 24, 2007

I am trying to compare two types of conditions, one that has 3 variables and the other that has 8 variables (each variable has a numeric range), which places the correct result in F6 and F7 of the atatched spreadsheet.

View 5 Replies View Related

Lookup Multiple Values And Then Compare To Get Specific Result?

Mar 29, 2014

I have below table and want to get new order quantity if the closing stock of a particular product is less than or equal to the ROL after viewing that a previous order of the same product has not been placed within the lead time of that particular product even the closing stock is less than ROL.

Product
Date
New Order

[Code]....

- 1st it match the product with the relevant one
- Then compare closing stock parameter
- Then finally look up the previous order and compare it with relevant lead time

View 9 Replies View Related

Compare Values In Multiple Columns And Return A Result

Mar 17, 2009

I have a spreadsheet with three years worth of data for a property I manage. Each column has cost data for the year and the specific department/cost for that year as the row value.

I have a column between the years that calculates the percent of gross revenue for the specific department/cost.

I would like to find (or create) a formula that will compare the percentage (or specific cost) for the three years within the specific row and if the increase year over year over year exceeds a trigger value it returns something (check me out/true/false) whatever.

The cost items for the property are in the hundreds so I'm trying to come up with a way to quickly see what specific cost items are going up (or down) more rapidly then what would be considered normal.

View 7 Replies View Related

Conditional IF AND Function Provide For 1 Of 3 Results

Jan 19, 2008

how to put together a function that will provide for me 1 of 3 results, (0, 1 or 2). Example Attached.

What I would like to do is have a function to have the results for the "Pts" (D) Column be either 0, 1 or 2 based on the following.

PM (D)<1.84 (F:10) = 2
PM (D)<2.25 (E:10), >1.84 (F:10) = 1
PM (D)>2.25 (E:10) = 0

View 2 Replies View Related

Index Function With Multiple Ifs Won't Return More Than First Result

Aug 11, 2014

I am attempting to get an INDEX function with multiple "IF" statements to return more than one result. Building multiple IF statements. That portion of the below formula works. However, I can only get the INDEX formula to return the first, single result.

Formula:
=IFERROR(INDEX(Func_Area,SMALL(IF(Const_Start<=DATE(YEAR($B$2),MONTH($B$2),DAY($B$2)), IF(Cost_End>=DATE(YEAR($C$2),MONTH($C$2),DAY($C$2)),ROW(Func_Area)-MIN(ROW(Func_Area))+1,"")),ROWS($A$4:A4)))," ")

Func_Area,Const_Start,Cost_End are all Named Ranges on Sheet "Proposed". My intention is to return a list of projects on Sheet Test1 for all projects starting construction after a certain date and completing construction before a certain date. I suspect something in my ROWS fuction or ROW-MIN+1 is wrong.

This formula returns the first result in the first row, but every subsequent row is blank...see attached spreadsheet.

View 3 Replies View Related

Link Search Box With VLookup To Provide Search Result

Jul 15, 2012

What i have so far is:
-3 Sheets (Sheet1 - Search, Sheet2 - Data, Sheet3 - Result)
-Sheet1 has a userform ready to link up - this opens up when workbook and worksheet is activated.
-Sheet2 has some example data to search - the search is for column 1 (see attachment)
-Sheet3 has a template ready for the data to be pasted to.

I would like the search result is column 1 to copy the data from columns 1 to 7 to sheet3.

I want the template/layout to remain after the pasting of results. (everything protected from editing, if possible).

Once finished (ie go back to sheet1, i want the data from sheet3 to be cleared.)

View 9 Replies View Related

Compare Cells & If Equal Perform Function

Jan 25, 2008

I need to vba help on the following:
For 1st A1 to Lastrow
{
if cells are equal
{
F1 = (C1+E1) - (B1+D1)
}
}
below is the records that i'm trying to worked on..has about couple thousands rows...
Description Debit Credit Debit Credit Profit
74HBHZMPXC 3,321.00
74HBHZMPXC 3,321.00
74HBHZMPXC 10.00 10.00
75HBCTIWSI 30.55 30.55
75HBJWFZEU 1,095.60
75HBJWFZEU 1,095.60
75HBJWFZEU 2,198.00 8.00
76HA25FYGB 925.00
76HA25FYGB 925.00
76HA25FYGB 1,856.00
76HA25FYGB 1,856.00
76HA25FYGB 1,856.00 6.00

View 9 Replies View Related

Search Multiple Columns To Provide Cell Location

Jun 20, 2007

I have text (eg. 1-* or 10-* or 11-*) being entered in the following columns

Q21:Q128
R21:R128
V21:V128
W21:W128
AA21:AA128
AB21:AB128
AF21:AF128
AG21:AG128
AK21:AK128
AL21:AL128
AP21:AP128
AQ21:AQ128
AU21:AU128
AV21:AV128
AZ21:AZ128
BA21:BA128
BE21:BE128
BF21:BF128
BJ21:BJ128
BK21:BK128

I would like Excel to search the above columns provide the cell location (eg. 1-10-*) is located in cell BF26

View 9 Replies View Related

Count And Provide Value Of Colored Cells In A Row

Feb 18, 2014

Suppose I have a file with many rows of data, some cells are colored (flagged with an error), in several columns C, D, E, F, & G. Not all cells are colored in each row. However I would like to add a column at the end that captures a count if a cell in the row is colored.

Referring to the attached example... I would expect a value of 1 in G3, 1 in H4, 1 in F6, 1 in H7, 1 in D8 and E8.

View 3 Replies View Related

Multiple Calculations From Different Cells With Result In One Cell?

Mar 19, 2014

I realised that the screenshot attachment makes much more sense than trying to show within post.

EXPENSE MONTHLY ANNUALLY MONTHLY COST ANNUAL COST

BILL £4.00 £4.00 £48.00
BILL £120.00 £10.00 £120.00
BILL £260.00 £21.67 £260.00
BILL £12.00 £12.00 £144.00
BILL £19.00 £19.00 £228.00
BILL £14.63 £14.63 £175.56
BILL £550.00 £45.83 £550.00
BILL £94.00 £94.00 £1,128.00

For my bills I want to work out first the monthly cost e.g. monthly(B) figure OR annual (C) /12 - and give the result in column (D)
And then work out the annual cost e.g. monthly (B) *12 OR annual figure - and give the result in column (E)

So if there is no figure in the monthly column (B), the calculation will be dividing the annual column figure by 12 and vice versa, if there is no figure in the annual column (C) then the calculation will be multiplying the figure by 12

This is probably a very simple calculation to do, but I am struggling to make sense of calculating results from different columns to give a result in the same cell.

SCREENSHOT.docx‎

View 1 Replies View Related

Fill Multiple Cells Based On The Result In One Cell?

May 31, 2014

When I enter barcode X in cell A1, I want B1 to say supplier and C1 to say product name and D1 to say package quantaty etc.

And if I enter barcode Y in cell A2, I want B2 to say different supplier, and so on, hopefully you get the picture.

View 7 Replies View Related

Compare If Multiple Cells Are Equal

Jan 31, 2010

I need to compare the data in three fields and if the same ignore but if different then add them with a space and a hyphen.

I use this formula for 2 fields and it works great I just can't get it to work with three.

=IF(TRIM(Data!BC2)=TRIM(Data!AY2),TRIM(Data!BC2),TRIM(Data!BC2)&" - "&TRIM(Data!AY2))

I use the trim command as the users entering data often add unnecessary spaces etc. and it combines the data even when the same.

View 13 Replies View Related

VBA Code To Compare Cells To Multiple Cells

Aug 24, 2012

So I have a sheet with 600 or so rows of data on a sheet called "Agent_Summary". On another sheet in the same workbook I have a list 20 peoples names. I am trying to find a way to look at the 600 or so lines on the Agent_Summary in column A and see if the name in that cell matches any of the 20 names from the "Team" Sheet. If the name on Agent_Summary is not found on the "Team" sheet then it clears the contents of that cell and moves on. Then it comes back and Deletes the blank rows. I can make it look for any 1 of the 20 names and the code works fine. How do I turn it into something that will look for any of the 20 names?

Here is my code to look for 1 of the 20 names that works great.

Code:
Sub Clean_up_Agent_Summary()
Dim Cell As Range
Dim R As Long
Dim RE As Object
Dim Rng As Range
Set Rng = Worksheets("Agent_Summary").Range("A5:A600")
Set RE = CreateObject("VBScript.RegExp")

[Code]...

"Worksheets("Team").Range("A5")" is where my 1 name is and the rest are just below that. I am thinking some kind of an Array but I am stuck on getting that set up and working right.

View 6 Replies View Related

Check Multiple Cells, Fire Macro Based On Result

Jul 14, 2007

I have three cells where a user will input data, in some cases (2T Weld Condition) they will only enter in B12 and C12, but in the case of a 3T weld they will also enter data in the D12 cell. I then use a formula to check for the thinnest material and that is entered into another cell with a formula, B14. I then need to check the value in B14 to verify if it is above zero, but below 0.65 (mm). If it is then I would like to have a message appear on the screen notifying the user that they are outside the acceptable range.

I cannot figure out how to use the information in cell B14 because it is a formula and my code only works with a direct value. The code I am using works if I point to one of the three input cells, B12, C12 or D12. How do I use the information in B14 to work with the code below.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$12" Then
If Target.Value < 0.65 Then
Run "MyMacro"
End If
End If
End Sub

MyMacro loads a userform with buttons, etc.

View 4 Replies View Related

Compare And Get Result

Sep 23, 2013

Here's what I would like to accomplish

The result is in cell B18

If K18 is greater than D18 by 50 to 99 B18 shows 3
If K18 is greater than D18 by 100 to 149 B18 shows 6
If K18 is greater than D18 by 150 to 199 B18 shows 9

And so on. I tried with IF but doesn't seem to work.

View 3 Replies View Related

Compare Two Columns And Result In The Third?

Apr 30, 2014

I need to compare two columns A and B with a result in column E. BUT I don't want the result to be added together. ( since it's receipt numbers ) SO my formula is incorrect I need a formula that will show the receipt numbers next to each other divided by a comma or forward slash...

View 7 Replies View Related

Excel To Compare Between Tables And Come Up With A Result?

Jan 23, 2014

How do i get my excel to compare between tables and come up with a result. For example i have 2 tables,

Table 1

[Code]....

Table 2

[Code] ....

How do i make them compare and then come up with a result like

[Code] ....

View 1 Replies View Related

Data Compare And Result In Another Column

Apr 25, 2012

I have DAta in Col A (Med ID ) and B has number of events assocaited with the unique ID. The Unique ID is also in Col C from another data source. I wnat to return the value from Col B in in Col C that mathces the MD ID if available. There are several more col in the sheet that have other dta that is not assocaited with this. HAving an Excel formula or VB code will do some analysis. Example

Exported Med ID Data Source 1Exported Med ID Data Source 1 Number of Times Not Availle able Med ID- Matched Result From Col B to Med Id in C

View 9 Replies View Related

Compare Data Of Two Columns And Want Result In One Column

Apr 3, 2014

I have one column which contains suppose first names & i have other two column which contains first name & last name in same sheet but like they may be having in g & h column.

so i want to exact last name of user form that column(g & h) to my first name column(a).

View 1 Replies View Related

Adding Multiple Cells From Multiple Sheets With Sumif Function

Jan 20, 2009

I'm trying to put together a spreadsheet that tracks disc capacity increases, affected by any incoming projects. I've managed to do so for one project, but would like to for up to 10. The way i've designed the solution (i'm sure there are far more elegant ways, but hey) is thus:

A forecast worksheet keeps track of a grand total, taking information from sheets P1 -> P10 (being projects 1 to 10). I am unable to figure a way to add up all the increases from all 10 project worksheets with one succinct formula. What I use so far is: ='P1'!C83+SUMIF('P1'!E82,"=2009 - Q1",'P1'!D82) ..................

View 5 Replies View Related

Macro To Compare Colors In Cell And Type Result

Feb 6, 2014

Like u see in attachment i have products in cells wich are painted in different colors. I need to compare two numbers of different product, and write result to column "Type D,C,B". If one of two products is without color/white or they are not the same color then result is always "D", if both products/cells have same color and different number then results is "C", if the color and number is the same then result is "B"

Below cell B2 I will write numbers by hand, when I finish and start macro it will compare first cell B2 and B3 and write result to C3, then compare B3 and B4 and write result to C4 and do that until there is any number in column B:B.

Attached File : excel help.xlsx‎

View 8 Replies View Related

Excel Formula To Compare Text And Give Result

May 5, 2014

I have multiple sheets in excel file. Every sheet having same information for different areas. e.g. The bug was reported. One sheet might have answer in YES and other sheet might have No. I need to get answer YES if even one of sheet contains YES for the field.

View 9 Replies View Related

How To Compare Multiple Values Including TIME And Compare Rate

Feb 21, 2014

Basically I have two sets of data. One will be new each week. I'd like to use the non-changing data as a base to compare new data to. The formula would need to match multiple values, including a 'time between', and then return whether a minimum rate has been met.

SampleRateExamine.xlsx‎

View 3 Replies View Related

Compare Dates In Table & Adjust Adjacent Value Based On Result

May 6, 2008

I have built a macro that tests to see if a date in a range is before the Period Start Date, and if it is, then the labor rate in that same row (3 Columns Over) should be escalated by the appropriate AWI. My code below works, but I am wondering if there is a better way than using offset(0,3) to prevent a code breakdown if columns are inserted between the Date and Rate columns. The date range is names "DATES" and the rate column in names "RATES"

Sub CountTheCells()
Dim cell As Excel.Range
Dim i As Integer
For Each cell In Sheet2.Range("DATES")
If cell.Value < Sheet2.Range("POPS") Then
i = i + 1
End If
Next
MsgBox ("You have " & i & " Rates that will be escalated b4 the POP Begins")
yesno = MsgBox("Would you like to Escalate the Dates and Rates?", vbYesNo)
If yesno = vbNo Then
MsgBox ("Not Done")
Else..........................

View 2 Replies View Related

Compare 2 Columns & Delete Rows Ouside Scope & Show Formula Result In Message Box

Jan 22, 2008

I have the following code to compare two columns and delete adjacent rows if 1 is greater than or equal the other...

Sub LastReceipt_GT_Confirmed()

Dim intLstRow As Integer

For intLstRow = Range("E" & Rows.Count).End(xlUp).Row To 2 Step -1
With Range("E" & intLstRow)
If .Value > .Offset(0, 1).Value Then .EntireRow.Delete
End With
Next intLstRow
For intLstRow = Range("E" & Rows.Count).End(xlUp).Row To 2 Step -1 .............

View 9 Replies View Related

If Function For Multiple Cells?

Feb 5, 2014

I have 25 cells, that can either have a value of 0 or o.2 The cells have to be added up. No problem there ofcourse. But if a cell has a value of 0, -0.25 should be subtracted from the total.

I have this formula, but I'm not sure how to use it for multiple cells:

=IF(M20,0,-0.25)

View 4 Replies View Related

Count Function For Multiple Cells

Apr 1, 2014

If cell D3 has the text string "RQS" and cell D2 is colored green, I want to count as one. The formula needs to apply to a range of cells. The end result being I want to know how many green cells are delineated at RQS.

View 5 Replies View Related







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