What I am trying to do is compare column B with column F (Being an invoice number) and column D with column J (Being a money value) and if the value exists in all columns then maybe say YES in column M?
There will be occasions where both Column B and F do match but column D and J don’t so I would like them to highlight in red or something too.
If I understand you question correctly, you can do what you need with Conditional formatting.
I sampled some data starting in row 3.
Per your instructions I have Invoice numbers in columns B and F.
I have the corresponding dollar values in columns D and J (D being related to B's invoice number, etc).
In my data I have 3 rows of information.
I selected range J3:J5 and created a new Conditional Formatting rule.
Select Use a formula to determine which cells to format
Use this formula =J3<>VLOOKUP(F3,$B$3:$D$5,3,FALSE)
Set the fill color when it fails.
J3 equals the first dollar value of your second set of data
F3 equals the first invoice number of your second set of data
$B$3:$D$5 is the full range of your first set of data
What this formula does is check to see if J3 does not equal the invoice amount for the corresponding invoice number in the first set of data.
It will work even if the invoice numbers are in a different order.
This is my result:
Related
I'm creating target revision tool to change the old target to new target based on sales percentage. It's difficult to keep all the sale percentage in If formula as conditions. So I added the between value condition (Ex:-1.99%, -1.00%) in Column G and H.
Now the problem is If column C value (Ex: -1.00%) is in between any of the % range in Column G and H, then the target value in Column B (Ex:10) should be Increased/Decreased based on the value in Column I straight to the range in Column G and H (Ex:-1.90%, -1.00% = 10) and calculated as 20 in Column D (revised target).
I'm attaching the screen shot of the excel.
So far the formula I used is this,
=IF(AND(G5>=S5:S18,G5<=T5:T18),B5+($U$5:$U$18,U5),B5)
It looks like the values to add/subtract are following a pattern and to arrive at the value you just need to multiply the rounded percentage by -5.
But if that is not suitable, or if you want to change the amounts not to follow a pattern, you can use the table in columns G to H as a lookup table.
In cell D2 use the formula
=B2+VLOOKUP(C2,$G$2:$I$15,3,TRUE)
Make sure to format column D as General
We do daily reconciliations for over 100 accounts. I've used match to find the values in column B that match any values in column A. The issue I have is that most of the time it takes a combination of values in column B to equal to one value in column A or a combination of values in column A. Is there a way to have excel run all possible combinations of values in column B and check it against all possible combinations of values in column A and match those up?
Here is what the data looks like. The ones highlighted yellow are an example of what I'd want a formula to help me match up. When added, the 1700 and 765.56 equal the 2465.56 on the other side. Let me know if further clarification would help!
enter image description here
Thanks!
I have this set up with a helper column. Assuming that the example data starts in Data A, the formula is as follows (in column O):
=SUMIFS(J:J,H:H,"="&H2,M:M,"="&M2,N:N,N2)
This sums up any values in Data B's amount (J:J) when Data B's Date matches the row's date (H:H), when the description matches the row's description (M:M), and if the record type matches the row's description (N:N). With the current data, it only sums 1700 and 765.56 because those are the two records that match the criteria (6/13, Cash Receipt, and Cash). This is the helper column which can be hidden.
Next to this column (column P) is the formula:
=IFNA(IF(MATCH(O2,C:C,0)>0, "Reconciled with Row " & MATCH(O2,C:C,0),""),"")
This formula will lookup the sum and see if it exists in Data A's amount. If the match does exist then it'll tell you which row in Data A has this amount. If match doesn't find anything then the cell will be blank.
I am very new in Excel and I have to implement this pretty complex task (at least for me it is complex).
I put what I am doing here: https://drive.google.com/open?id=1sWHbyl-Y-GgSiX7JJ3bJ9_y8DUts-E0e
I will try to explain exactly what I have to do:
For each rows I have to "calculate" the value of the L column in this way.
Each cell into the L column is "calculated" using the following steps:
Considers the date into the H column of this row.
Search the nearest date in the past into the A column to select a specific row.
Take the E column value of this row and use it to populate the current L cell.
So doing a practical example, I want to populate the L3 cell, I have to do:
Considers the date into the H column of this row: so I obtain the value of the H3 row that is this date: 16/12/2017.
Then, into the whole A column I search the nearest date in the past in this column (in this case it is 15/12/2017), so I select the row number 4.
Take the value of E4 cell value (598,05 €) and write it into my L3 cell.
How can I do something like this?
Thank you
This is a simple INDEX(...,MATCH()) situation.
=INDEX(E:E,MATCH(H3,A:A,1))
This will return the value in column E such that the date in column A is the greatest date less than or equal to the value in H3.
Note: This assumes the dates in column A are sorted in ascending order.
VLOOKUP:
=VLOOKUP(H3,A:E,5,TRUE)
This requires the dates in Column A to be sorted.
Column A has a set of dates, column B has an exchange rate for every cell in column A.
Similarly, column C has a set of dates while column D has an exchange rate for every cell in column C.
However, the set of dates in A and C is not the same.
I want to keep the common dates in both rows and their corresponding rates in the other two rows.
How can I do this?
Use the vlookup function in column E where the key is the date in column C, and the lookup range is columns A and B, use a column index of 2 (so it displayes the rate from column B) and make sure that the final argument is false so that it finds the exact value. This will return a #N/A for dates that are not also in column A.
Next, copy column C, and paste values. This will hardcode the values that the formula displays. Now you can delete all rows that have #N/A in column E, and you are left the data you want in columns C to E.
I have a table with student IDs separated in groups. I need a handy way to count the total number of students in each group and populate it after the last row of each group (marked with ??)
Currently I just enter =COUNT() and then manually figure out the top and bottom borders of the range for each group. Not convenient at all.
I was thinking that a possible solution could be one of the following:
A some kind of pivot table permutation. I failed on this one.
Excel Data->Outline->Subtotals functions. Again, fail. It keeps creating new rows in my table.
A universal formula that can be pasted into each ?? cell. Not the most graceful solution, but still would do.
A macro. As a last remedy if nothing else works.
The following steps will calculate the subtotals while preserving the structuring and formatting of your worksheet.
Put this formula in cell C1 and copy the formula down the column:
=IF(NOT(ISERROR(SEARCH("Total",A1))),COUNTA(INDIRECT("B"&MATCH(LEFT(A1,LEN(A1)-7),A:A,0)+1&".B"&(MATCH(A1,A:A,0)+1))),IF(B1="","",B1))
Apply a conditional format to cell C1 with the formula rule =(MOD(ROW(C1),2)=0) and blue fill to match the shading on the other rows. Copy the format down the column using Paste Special Format.
Either hide column B, or copy the values in column C to column B using Paste Special Values and hide Column C. If you decide to copy the values to column B, you won't need to set the conditional formats.
Here is what the formula does:
First, check whether the formula's row is a Total row, by searching the cell in column A of the row for the word "Total," using the SEARCH function.
If the word "Total" is found:
Determine the range in the worksheet of the student IDs for the group for that total row:
a) Identify the rows in which the words "GroupX" and "GroupX Total" are found by using the MATCH function. With that, you know that the IDs for the group are in a range that starts at, say, row x and ends at row y.
b) With the starting and ending row numbers, construct the address range in which the IDs lie, which has to be the string "B" + (row x) + "." + "B" + (row y).
c) Turn the string into a range reference that can actually used in a formula using the INDIRECT function.
Count the number of students in the group using the COUNTA function and the range, and show that as the formula's result.
If the word "Total" is not found
Check whether the cell in column B is empty
a) If it is empty, show a blank as the formula's result
b) if it is not empty, it must be a student ID, so show the ID as the formula's result.
Add a column (I usually add it to the LEFT of the existing matrix) where you enter a formula from row 2 onwards that fills the blanks in the old column A. Then the old matrix including your new column can be used in a pivot.
So Insert a column left of your matrix, this is column A now. Put a header in Cell A1, for example "Group Name1"
Enter the following formula in cell B2 and extend it to the end:
=IF(B2="",A1,B2) This way your blanks will be filled.
Now apply a pivot on this matrix and there you are.
Maybe not the nicest looking solution, but its quick and works well.
If u have table like this
Students id Name of students group ........
then u can use countif/countifs formula