Multiple IFs - Reference Corresponding Value In Column If All Are True
Oct 18, 2012
I am trying to write a code for the following and am having quite a bit of trouble (I am also dealing with almost 1500 rows of data for each of these examples). If a surgery in column A occurs on a certain day (e.g., 10/1/12), at a certain time (e.g., between 7:30am and noon where the times are written in 24hr), in a certain OR room number, (e.g., 10), then I want the value to write the name of the physician in the cell. I've tried multiple IF, COUNTIF, SUMIF, statements and have continued to get errors.
TABLE:
A
B
C
D
Date
Time In
OR Room
Surgeon
10/1/2012
730
10
Dr. X
View 6 Replies
ADVERTISEMENT
Aug 2, 2013
I have an inventory log that requires multiple cells in different columns to be unlocked based on a reference cell's input.
So, if a cell in column E has "MORNING" entered then cells L/M/N are unlocked and said user can input data for that row, and only that row. If anything else is in E, then L/M/N are left locked.
Is there a way to do this without coding, just using regular IF() in the cell directly; IF(ISTEXT(E3)=MORNING, Unlock, KeepLock)? I know that's nowhere close to being a legitimate statement, but it's the best way I can translate my thoughts.
View 9 Replies
View Related
Mar 7, 2014
I've created 12 identical work sheets for the year, each has 6 columns of data and 87 rows all containing different information (letters, numbers, dates and characters).
I've also set up a "Conditional Format" rule so that any identical information triggers a strikeout (line through the cell entries) of the entire row for both lines of offending duplicating data. To do so, I created a use cell off to the side (in column AT) with the command =CONCATENATE (u41,v41,w41...) which condenses all data into 1 cell.
Afterwards, I went into Conditional Formatting and created the strikeout command with =COUNTIF($A$T$29:$A$T$116,$AT29)>1; where the $AT29 reference simply identifies the cell to the left and then continues down.
This has worked well but I'm stumped. Now I want the reference to extend to the previous month, lets say I'm in February and want to extend the search to Januarys AT29:AT116 review.
simply use a reference in the COUNTIF formula in the Conditional Formatting rule that takes the search through to the January work sheet, then I can simply duplicate the command for the March sheet which will then review all 3.
View 1 Replies
View Related
Jan 8, 2013
I want my IF function to populate two cells with two values if argument for IF function is found TRUE. Is it possible?
IF(logical_test, [value_if_true], [value_if_false])
value_if_true = return multiple values in mutiple cells (for example put number 8 in cell A2 and number 10 in cell A3 if function is TRUE)
How would I do that? I tried putting IF(logical_test, (A2="8",A3="10"), [value_if_false]) but it is not possbile...
View 3 Replies
View Related
Aug 6, 2014
I am trying to get a function in a sheet where it has two possible truth outcomes and one false outcome. Both statements false statement goes back to
'Production Metrics 2'!E11/12
Here are the two If statements as they appear in the formula bar now. I need to combine them so they both work and don't cancel each out out.
=IF('Production Metrics 2'!E11/12>2500,2500,'Production Metrics 2'!E11/12) If c10+b10>=4500,0,'Production Metrics 2'!E11/12
View 10 Replies
View Related
Mar 6, 2008
A 'Days Attended' cell (N8) and a 'Days Absent' cell (O8). N8 needs to count the number of "Present" values there are on another worksheet. The other worksheet has dates across the top and names down the side.
When i use
=COUNTIF("Attendance!C9:Z9", "Present"),
and the next date comes along the formula changes to
=COUNTIF("Attendance!D9:AA9", "Present")
ie. the reference moves a column across - the new date's absent or present is not counted. Using =COUNTIF(INDIRECT("Attendance!C9:Z9"), "Present"). is no good because when i add a new name i need the row reference to move down as a row is inserted. ie. both person's formulas count the same row. So, my question: I need the columns to stay the same - C:Z (leyway for future dates) and the rows to change as i insert or delete people from the system.
View 2 Replies
View Related
Dec 4, 2013
I've got a mega excel sheet right now with multiple people making updates to it on a daily basis. As such I am trying to find a way to output various totals in a separate static table which i can grab at any point and be confident numbers are correct.
The problem, firstly I cant figure out how to have multiple true false formulas checking the sheet from 1 cell. i.e "Check column B True/False for RestrauntNameXYZ + Check column E for true/false GroupABC + check column G for true/false Lunch"
and then
Calculate sum of column A for all rows which above combinations of true/false checks spit out.
View 7 Replies
View Related
Jun 16, 2012
Write if statement or any other formula: if cell C3 is less then 0 then "over due", if = 0 then "due" and if more then zero then "not due yet" otherwise preferably nothing, because that would mean that the cell is empty.
View 6 Replies
View Related
Mar 27, 2007
I could probably fix by making a loop, but I am trying to avoid doing any more looping. The program that I am working on has way too much looping in it already, and is getting kind of bogged down.
Here is what I need. On my worksheet, column D lists the names of farms, column E lists a specific chicken house on that farm (by number), and column F lists how many chicks are being placed into that house. What I need to do is find a way, within VBA, to add up all of the chicks in column F that correspond to a certain farm name (column D) and chicken house (column E).
I can make something like this work in excel, but not in VBA. For example, if I wanted to find out how many chicks were being delivered to Johnson Farms, house 4, I would use this formula:
= SUM(IF(($D$5:$D$25="JOHNSON FARMS") * ($E$5:$E$25=3),$F$5:$F$25 ))
View 9 Replies
View Related
Aug 2, 2009
I have a worksheet where I have around 300 rows, each with 7 columns. What I want to do is add a checkbox to each column. I plan on setting non-applicable checkboxes to mixed status and locking the worksheet. I will unlock applicable checkboxes and sumif or countif their value according to row-based scoring, for example, each checked checkbox represents a value of 3. I do not know VBA and have chose to use the form control checkboxes rather than ActiveX.
I believe that a formula for this would be something like: =SUMIF(B1:B3,True,"3") or =COUNTIF($B$1:$B$3,True)*3
I am wondering firstly if I have that right and secondly if there is a way to stop my checkboxes from displaying labels. Currently, if I click on one it displays True behind the active checkbox. If I uncheck it, it displays False.
View 8 Replies
View Related
Apr 19, 2008
i have a list of variables with the suffix number incrementing
type1
type2
type3 ... etc to 100
and i want to run a function for each type instead of having repetitive code for each of them how can I concatenate the integer i with the string "type" and have it as a variable name?
Private Sub CommandButton1_Click()
Dim type1 As Boolean
Dim type2 As Boolean
Dim type3 As Boolean
Dim type4 As Boolean
Dim type5 As Boolean
View 3 Replies
View Related
May 13, 2008
I'm trying to find the sum of a range of values based on multiple criteria, and the criteria is that the fields all have to be identical, then sum them. I've attached a brief example spreadsheet that has the fields
A=City
B=State
C=Values
What I want the formula to do is first find the range of all the matching states, then find the range of all the matching Cities within the states, and then sum the values based on them having matching city values.
I've been able to do that with one criteria using SumIf, I'm not sure if this will help paint an image of what I want to do:
=ROUND(SUMIF($B$3:$B$11,$B$3:$B$11,$C$3:$C$11),0)
But I can't figure out the way to do multiple criteria against itself. Most of the results I get from Google using multiple criteria are using a set few values, and I can't seem to figure out how to alter those methods to work with my situation.
View 9 Replies
View Related
Aug 18, 2008
(Excel 2003 on windows XP.)
I need to SUM the cells in column J when column E has the word "yes" and the range N:R has a letter "w" in one of the columns. Only one of the N:R columns will have an entry on any one row and it may not necessarily be a "W".
I have Googled, and being a beginner I don't comprehend the result! Some people were talking about using an add in, but I won't be allowed to add software to our PC's.
View 7 Replies
View Related
Nov 28, 2011
I have a workbook with 2 worksheets. 1 Worksheet contains a data table and another table contains a form
Worksheet 1 (Data)
[A] [B] [C]
1) [Material #] [Batch #] [Destruct Form #]
2) 10 100A 1A
3) 10 101A
4) 20 200A
5) 30 300A 2A
6) 30 301A
Worksheet 2 (Form)
[A] [B]
1) [Destruct Form #] [3A]
2)
3) [Material #] [Batch #]
4) [10] [101A]
5) [20] [200A]
I am looking to create a macro which, when executed, will:
1) search sheet 1 column B for any instances where a "batch #" from sheet 2 column B appears
2) add in the corresponding "Destruct Form #" from Sheet 2 Cell B1 into sheet 1 column b
Therefore after the Macro is run, sheet 1 will look like this:
Worksheet 1 (Data)
[A] [B] [C]
1) [Material #] [Batch #] [Destruct Form #]
2) 10 100A 1A
3) 10 101A 3A
4) 20 200A 3A
5) 30 300A 2A
6) 30 301A
View 9 Replies
View Related
Apr 20, 2009
Trying the following syntax and I do not get any value in the cell if either of the conditions are true. Pretty sure I'm nesting the functions incorrectly. Maybe I should use Index/Match? =IF(AND(E24="SI",F24="SI"),"ER2","",)IF(AND(E24="sn",F24="sn"),"er2","")
View 3 Replies
View Related
Mar 13, 2013
In the attached spreadsheet I would like to create a list of part numbers if column D E & F all have a #N/A value. Right now I'm using a True/False but this list contains around 3000 items and I don't want to have to scroll down to find the True values. Is there a way I can just create a list of corresponding part numbers to the True Values?
SAMPLE.xlsx
View 7 Replies
View Related
Oct 31, 2013
I have a list of items that I am preparing to upload to an access database. The list is quite lengthy and has required a lot of manual corrections to get it prepared for upload. It also has several columns that are not needed in the access database, but that I used to make sure that all of my data was ready. What I'd like to do is create a new table that will have the same structure as the table in my access database and upload the portion of data that I have ready now so that I can do some further development using actual data. In order to do this I need to extract the ID Numbers (column B values) of the records that are marked "True" in the "Ready" column (column G Values) and deposit them in the new table. I only want to copy over the ID Numbers as the additional fields will be populated with match / index lookups from a third table that I have on another worksheet.
View 2 Replies
View Related
Sep 12, 2012
make and loop that loops true all values in column A and B. For example, if the cell A3 is higher the cell B3 then I want it to write the higher value in new sheet.
View 2 Replies
View Related
Mar 7, 2009
I am trying to create a formula to count the number of time the word "NEW" appears in one column, provided the result of another column gives a certain answer. Sample of my problem and question in detail on attached.
View 2 Replies
View Related
Jun 27, 2008
I am applying data validation in my workbook. The data in ColS consist of:
ColS
(Row2) X
(Row3) Y
(Row4) Y
(Row5) Y
(Row6) X
In ColT, I am to apply data validation: i.e. If in concerned row of ColS is having "X" value, then I am to show an error message. Else, values from A2:A5 should be shown in the as list and these should be accepted in ColT.
View 11 Replies
View Related
Nov 15, 2006
I am trying to Sum lines of info with "True or False" and "Yes and No". I would like to assign 1 to True and Yes and 0 to False and No when I total the rows. Never tried this in Excel, on Lotus and the formula does not work. I can find and replace, but I would like to be able to use a formula.
View 2 Replies
View Related
Jan 16, 2013
I have a spreadsheet with a column showing dates (dd/mm/yyyy). I need the column next to it to display the month only (Jan,Feb etc).
How do I create a column to show the month only using the date column as a reference.
View 5 Replies
View Related
Feb 8, 2010
I want to get value from reference one column and return value by corresponding row from another column. This can be done by vlookup column. But it find value from 1st column and return value from given relative column. That mean find from Left column and return value from right side given column number.
But I want find from Given column number and return value from given left column. For Further detail see the Attached file.
View 3 Replies
View Related
Feb 26, 2012
I have a workbook that updates from external source and creates sheets depending on a cell range.
I have put tab 1 and tab 0 on either end of where the new sheets will be inputted, will never know how many sheets
What i need to happen is if someone fills in "complete" in A7 in my "summary" sheet then the values in row 6 in all the other sheets get hardcoded. This needs to happen from A7 down to A26, so A8 = complete then copy row 7 etc
This is what i have so far
I get compile error here ........Sheets(ArrSh(1)).Activate
Also need it to work for all the other rows.
Sub hardcode()
'
'Sheets("Summary"). Select
If Range("a7") = "complete" Then
'
Sheets(Array("1", "0")).Select
Sheets(ArrSh(1)).Activate
[Code] ......
View 2 Replies
View Related
Feb 2, 2012
If column B is not empty, I want the corresponding cell in the same row of column A to contain the value "1".
View 9 Replies
View Related
Nov 19, 2013
I Basically need to use DATA in Column D of my file to add a ROW and then use Column C to name that new ROW added...
Example: [URL] ........
View 2 Replies
View Related
Jul 17, 2014
Currently, I have a standard vlookup forumla that looks like =Vlookup(B2,Sheet2!A:G,5,false)
However, the data on sheet two is ever expanding--each month, specifically. And I need to return the most recent (so, rightmost filled) column. Right now, the column is 5, but next month it will be 6 and so on and so forth.
View 7 Replies
View Related
Aug 25, 2008
Sometimes one employee may appear under more than one group (bartender, barback, waitstaff, etc.). I need to insert a formula that will check the other groups to see if this employee worked any hours in another group that week (I would assume a VLOOKUP would work), and then distribute the overtime hours accordingly.
If you view the attached worksheet, you can see I've entered a name and some hours. The formulas in cells M2 and N2 are my attempt to fix this problem. Anyway, the way the overtime hours are distributed is based on the group they worked under after they reached 40 hours. So looking at the example on the worksheet, Bob should have all of his overtime (13 hours) appear under O/T in row 2 because the 9 hours he worked on the waitstaff was before he was "officially" earning the overtime.
So I am needing the formula to check all of the groups other than it's own for a duplicate, add the total hours, and distribute the overtime accordingly.
View 14 Replies
View Related
Jul 23, 2008
I'm trying to sum the values in a column if 2 different conditions (in 2 other columns) are true (so I'm evaluating 3 columns total).
For example, if I had a list of the prices of all the cars available at a dealership (each car listed on a different row), and I wanted to find the total cost of all toyota celicas listed, how would I do this?
Basically, I'm trying to create a formula that says "if the value in the make column = toyota AND the value in the model column = celica, then sum the related values in the price column."
View 9 Replies
View Related
Dec 16, 2008
Example:....
i m wanting Cell B1 to display true if any of the values in column C match otherwise I want to display false.
A 1
B 0
C 0
D 0
But I can't determine how to get this done.
View 5 Replies
View Related