=IF(M22<=286.74>191.16,(286.74-M22)*30%, IF(M22<=191.16>127.44,((191.16-M22)*50%)+28.674, IF(M22<=127.44>79.65,((127.44-M22)*70%)+60.534, IF(M22<=79.65,((79.65-M22)*90%)+93.987. is returning all data based on =IF(M22<=286.74>191.16,(286.74-M22)*30%, and is disregrading the rest of the formula.
find the attached sheet. I want advice for the VBA Code I used in this sheet. I am simply using nested if. advice me any other solution for the same as I want data to be copied from Jan to Dec ? I am beginer in VBA coding.
I think I just need a basic Nested For Loop code. I have a list of in column A, from A1:A537 and another list in column B, for B1:B50. I want to add a column that concatenates, each item in Column A to B1 (so 537 rows), then again each item in Column A to B2, another 537 rows, etc.. this loop is repeated 50 times, one for each name in column B.
I setup this function to pull my staff's schedule an auto generate the forms i need however the lookup function works properly sometimes and improperly others i checked the syntax and it is correct how ever the wrong data is continually returned. I have attached the file if anyone can help. the VISUAL PLAN tab is the one contaning the formula and it pulls data from PLAN, CURENT SCHEDULE, AND CATAGORY SUMMARY however the only formulas hat i have a problem with are the ones referencing CURENT SCHEDULE.
Excel spreadsheet will contain a form that will consist of drop down boxes (data validation). Each drop down box will define the data that can be selected in the next drop down box.
The way I initially went about it, is creating nested IF statements. However, we all know there is a limit of 7 nested IF statements. I have 10! So below formula does not work: =if(B5=1,F5:I5, if(B5=2, F6:I6, if(B5=3, F7:H7, if(B5=4, F8:J8, if(B5=5, F9:H9, if(B5=6,F10:G10, if(B5=7,F11:H11, if(B5=8,F12:H12, if(B5=9, F13:I13, if(B5=10, F14:K14))))))))))
I tried other workarounds such as CONCATENATE, or & signs. No luck. VLOOKUP does not work also, because there are multiple columns in col_index_num. Anything else I try gives me this message: “The List Source must be a delimited list, or a reference to a single row or column”
What should really happen is this: User selects value in first list box. Second list box shows values associated wih the value from the first drop down only.
i am having trouble putting together an IF Formula together with and/or. i need to do the following
if cells k8 and l8 and r8 are empty, then no data should show. if cells k8 and l8 and r8 is zero, then show zero. otherwise add all three cells. i thought i should use if(and... that is all 3 cells must be empty or zero.
=IF(OR(ISBLANK(K8),ISBLANK(L8),ISBLANK(R8)), "no data", IF(OR(K8=0, L8=0, R8=0),"ZERO", K8+L8+R8))
i have tried if(and) and if(or) and no matter what i have tried it doesnt work
I'm trying to figure a to enforce dual data validation on a single cell. That is, I need to restrict the user to entering only a decimal value, only if a particular other cell (say A2) is blank. To put it another way, if A2 is blank, the user can enter a decimal value, but if A2 is not blank, the user cannot enter anything. I can use Data Validation to enforce either the decimal restriction or the ISBLANK, but I'm not sure how to make them work together.
I've got this code that pulls data from multiple files into one table. the file name is in the top row, and each file's title, and two different sums display below that. Then it is supposed to loop through and display each task and the start and end date for that task within each file. After that the first loop brings it to the next column and file. The primary loop works fine, but the inner loop only seems to run once, as I get only the first result for each file. All I can figure is that maybe my row numbers aren't resetting like they're supposed to, or I'm completely overlooking something, which is likely, as VBA is by no means my forte.
Sub Worksheet_Calculate() Dim sBook As String On Error Resume Next Application.EnableEvents = False Col = 8 ' Sets start column Do sBook = Cells(2, Col) ' References file name TaskRow = 6 ........................
I would like compare data using a certain column to key off of and compare whether data has changed.
I have 5,000 rows and 26 columns. Cell C1 is CALLED PMNUM, cell I1 is called CHANGEDATE
I want to find all of the same PMNUMs (C2-C5000), look at the last change date (I2) (sorted in descending order), compare it to the previous change date (I2) and if anything has been changed in columns D2 through G2 and J2 through Z2 compared to the last time the data was reported, list the changes in in AA2.
I want to be able to choose a country from a drop-down list, and then have the spreadsheet retrieve/return values from that country, whose input data is located in a different worksheet. E.g. I want to be able to change the input according to what country I am looking at. I was able to do this with simple IF functions,but I'm realizing that this is not good enough. I want to eventually expand the number of countries that I want to return data from, and then the formula is not dynamic enough.
Example spreadsheet attached.
To make it simple: I want to be able to return the correct values for "page views" and "high" and "low" according to what country I choose from the drop-down menu in cell C3 on the "value calculator" sheet.
Also; in cell N15 and N16 I want the alternatives to be yes and no, and they cannot be yes at the same time. H
I am working on a form to pull employee identifiers such as employee ID, store number as well as sales performance. I am using the below formula but the data that is being returned is not the correct data for the specific employee. C5 is the employee name (last name, first name) in a single cell. A sample of the spreadsheet I am trying to pull data from is attached. Some employees the formula pulls the right data and some it does not...
I have a query which is giving me some trouble when returning the data from ms query. The query was written in mysql query browser and returns 2 columns of data - a date and a number. MS Query correctly processes the query but when the data is returned to excel only the second column is returned. Here is the query:
SELECT (SELECT max(l.the_date) FROM nc_view_date_functions AS l WHERE l.week_of_year = d.week_of_year AND l.yyyy = d.yyyy ) AS week_end_date, count(r.consent_id) AS weekly_count FROM rg_resource_consents AS r INNER JOIN nc_view_date_functions AS d ON r.application_date = d.the_date GROUP BY d.yyyy, d.week_of_year;
Is there any function in Excel that returns all values from a list above or below a certain percentage rank/percentile?
For instance, if you want the average of the 2% highest numbers in a list? Or the sum of the 25% most expensive items in a shopping catalogue?
It has to be a "dynamic" function, where you can just drop in a set of figures, sort the list, add a percentile, and perform a calculation on all the figures from the cutoff point signalled by the percentile...
I have a pretty large table,(153,000 rows) My lookup_value is a 7 digit number. If my lookup_value isn't in the lookup_vector, it should return "#N/A" (which it does most of the time) but I noticed it was returning a result when the lookup_value didn't exist...it didn't exist anywhere in the table.
how to extract data like filtering but with a formula.
A B C D E
1 Cat1 Cat2 Cat3 Cat4 (Cum of Cat3) Return Cell
I want to return data in Column E such that if Column A is Apple and Column B is Red, I want Column E to insert there "9", which is the last row matching this criteria (just once for Apples, Bananas etc.).
Notes: A Apples wont appear again in the coming rows.Reds can appear again in the coming rows.Column C is constant.Column d is the Cumulative.Normally what would you do manually is filter Apples and Reds and record the last value for Column D.
I have data exported as .txt from an external program in the following format:
Sample Name Marker Allele1 Allele 2 ....Allele n AAA D8S1358 10 11 XX AAA D16S539 16 19 XX and so on.
Each "Sample Name" will have 16 different "Marker"s and upto 10 different "Allele" at each "Marker". There could be upwords of 200 Sample Names on each exported sheet. Is there a simple way to compare all of the data from each "Sample Name" to each other and possibly to another sample set that will always be static but of the sample general makup as this?
What's odd is that if I create the formulas above independent of the specific formula data (O5, P5, and Q5) and just type in numbers, those formulas do exactly what they should. Can I not compare data returned though formula calculations?
The formula should take the info from validation lists in R13 & S13, and match them up in F3:O3 (T1Q2) & C6:C15 (T2Q2) and return the data in the intersecting cell into R9 (Where the formula is kept). In this instance, it should find 1 at I3 and the 4 at C15 and return NN to box R9.
I am trying to use queries I have been running in MS SQL Server Management Studio, to return data in Excel where it would display as pivot. Some queries I was able to use through Excel but few others are not returning anything.
I am doubting it has something to do with the query itself - but they are displaying results properly in MS Query, they are just not returning any data to Excel.
I have a problem with a calculation i am trying to do. I have to calculate holiday allocation for staff but i my company also offers length of service bonus days. After 5 years you get 1 extra day, after 10 years you get 2, after 15 you get 3 and so on. In my sheet i have a formula based on their start date that tells me their length of service in the following format: 10 years, 2 months.
I have put an IF Statement in for each of the different milestone criteria but the result is not coming back so i know i am missing something. Is there something wrong with the formula itself or is there a better one that will allow me to put the start and end of the range i want it to look at? For example can i tell it to say if between 5 years and 9 years 11 months put 1, if between 10 years and 14 years 11 months put 2 etc in column H.