I have a spreadsheet for expenses that I want to be able to apply a formula to the Subtotal column if the currency is JMD. Else, I want to leave sum unchanged. Here is an row that I want to apply to. I only will have one value in one of the columns.
I need the subtotal column to take the column in the row that has a value, if it is JMD, then I need to multiply the value times ".0089" for converting to USD. If the value is USD, then I need to put the value as is in the subtotal column.
Any help greatly appreciated!
I recommend adding a column in which you choose USD or JMD ideally from a drop down (see data validation). If you add it to the left of the current column C, the formula could be as follows:
=sum(F9:M9)*IF(C9="USD",1,0.0089)
Simple, explicit and easy to maintain!
You may have other conditions that you might want to account for down the road, but the following formula addresses your question as is:
Enter the following in cell M9 and copy down as needed:
=IF(IFERROR(MATCH("*USD*",E9:L9,0),0)<>0,TEXT(SUBSTITUTE(INDEX(E9:L9,MATCH("*USD*",E9:L9,0)),"USD ",""),"0.00"),IF(IFERROR(MATCH("*JMD*",E9:L9,0),0)=0,"",TEXT(SUBSTITUTE(INDEX(E9:L9,MATCH("*JMD*",E9:L9,0)),"JMD ","")*0.0089,"0.00")))
Hope this helps. Cheers!
Related
Two part question.
I have a formula in excel that currently doesn't work, and so I want to correct this formula and then apply it to a subset of rows that I want to be able to select within a formula.
Here is a screenshot of what I am working with:
Part 1:
So the result is being calculated in cell G3. I would have expected the value to return the value 5 and not 6 as what I expect the calculation to do is the following:
1) Look in column C and find which rows are less than the threshold value in cell G3.
2) Of those rows that meet that criteria, return the values that are in column B.
3) Take the max value of those returned values which is 5.
Am I missing something here?
Part 2:
Second part of the question is that I would like to be able to apply the "correct" formula in Part 1 to a subset of rows based on the the ID's in columns A. Basically I would like to take the unique ID in cell E3 and then apply my corrected formula to all of the rows where the values in column A matches E3. This one I cannot seem to find a formula for to do.
This excel doc is going to become a general tool and so I don't want to have to select rows manually and so would like to be able to do all of the matching without selecting thins manually.
Since you have a recent version of Excel, you can use MAXIFS:
=MAXIFS(B3:B10,A3:A10,E3,C3:C10,"<=" & F3)
FYI, based on your description, 6 is the correct return value.
I'm a novice to Excel. I don't which formula to use. I want to set up a budget for 12 months, that quite easy ex. 12000/12= 1000 in 12 columns. I need a formula for when one column answer is changed by hand lets say to 2000, that will the remaining columns answers automatically change to 909.09. I don't which formula to use and if its do able?
Thanks for your help
Kind regards
Johan
You could add a helper column in which you keep track of the manually entered values.
Let's say the Total value (12000) is in A1, months are in column A2:A13 and the helper column is column C.
Column B would then be;
=IF(C2<>"",C2,(A$1-SUM(C$2:C$13))/(12-COUNT(C$2:C$13)) for cell B2, simply extend to the other cells in column B
My question is relatively simple I believe, just not getting it just yet. So here is where I am having trouble,
Let's say, Column C has numbers from C3:C33, I have other items underneath C33 but want to have a SUM of C3:C33 in Column J4 as total. That is easy enough, but when I try inserting a line at C33 to add an additional number, it doesn't automatically SUM in the cell J4. I've looked for answers and I've came across this formula:
=SUM(INDIRECT("C3:C"&ROW()-1))
That works right under C33, and works fine if I have J4 =C33 and just simply hide that formula's row. But I'm wondering is there another Formula that will automatically auto adjust SUM from J4?
Any help would be great!
-Maykid
Use:
=SUM(C3:INDEX(C:C,MATCH("Totals",A:A,0)-1))
Now no matter the number of rows, it will sum only those from C3 to the row above where Totals is found in column A.
Try to use SUM(C3:C34) and leave C34 blank. You should now be able to insert below C33 and the formula should automatically adjust.
Ex.
column A is a formula that outputs an 8 digit ID from a prior delimited calculation. I want to vlookup that ID to a separate set of data, but it is not finding the ID when the lookup value is part of a formula.
Is there a way to paste the formula result as a value in column b?
I have a list of 3000+ IDs, so using the F2, F9 trick won't work, since I would have to do that cell by cell.
Would prefer not to use VBA, but if that is the only way, can someone help simplify that process (new to using VBA)
If you have data in column A based on a left function of a bunch of numbers, and just want that result in column B, all you have to do is put:
=Value(ColRow)
in Column B. Then you can look up the value in Column B via VLookUp.
I am an avid Excel user and personally tested this solution. Though it appears #Scott beat me to it in the comment section.
I am working on a personal budget sheet in excel, and it's formatted based on my pay dates, to provide more drilled-down information. I have attached an example of it below for reference.
I would like to put a formula into J2, J3, and J4 which will take the data in cells C9:C26 and H9:H16, match it to the date in cells D2:D4, then subtract the expenses in D9:D26 and I9:I16 from E2, E3, and E4.
As you can see, I have just individually summed the cells; however, I would like a formula to be able to adjust as I change the value in cells C9:C26 and H9:H16.
I have found that I can do it with ONE cell, but not multiple or a range. This is the formula I used, and I cannot find a way to make it apply to the entire range of cells: =IF(C14=D3,E3-D14)
I've also tried: =IF(C9:C25=D3,E3-D9:D25) -- I know this formula doesn't work and why. I cannot figure out how to get column C to correspond with column D.
The Budget Sheet
You just need to use SumIf().
In cell J2, put this formula: =SumIf($C$9:$C$25,$I2,$D$9:$D$25)+SumIf($H$9:$H$25,$I2,$I$9:$I$25) and drag down the three cells.
With that, you can add E2-[formula] to subtract all that from E2. Or of course, just do e2-J2 instead. I think that should do what you're looking for. If it's not quite it, let me know and I can tweak.
If you plan to have more than 1 criteria go with SUMIFS
Yes, with S