English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ok, I am making a spreadsheet to show my profit in selling on ebay. I have coloums that have; selling price, auction cost (ebays take), and sold (yes or no) then I have selling price - cost = profit. BUT is there a way to only total the profit if i have yes in the sold coloum? Right now it is adding all my auctions even if they are not sold. Please help and thanks for your help in advance.
Kyle

2007-02-21 03:10:32 · 4 answers · asked by Kmaldona 2 in Computers & Internet Software

4 answers

Say Price is Column A
Cost is Column B
Yes/No is column C
Profit is Column D


Use the following formula on the profit column

=If(C1="Yes",A1-B1,0)

This will put the profit on column D only if column C is "Yes". Else it puts a zero. This way you have a column with only the profits, which you can add up. I am assuming row 1 on this example

Also, please make sure that "Yes" in your formula is spelled EXACTLY the way you spell it on your "Yes" or "No" column.
********************
One neat trick to avoid common spelling mistakes is to create an input list.

First, create a list off the main area of the spreadsheet with the words "Yes" and "No". Make sure they are spelled exactly the way you spell it in your formula for column D.

Then, select the cells on your Yes/No column.

Go to the pull-down menu at the top select DATA > VALIDATION.

Select the "List" option from the validation criteria and then use the source option to select the cells showing your Yes and No list you created above.

What you are doing is limiting the input options on your Yes/No column to EXACTLY the options on your list. This way the yes/no column will only accept values that are spelled the way you want.

Hope this helps.

2007-02-21 03:23:35 · answer #1 · answered by Humuhumunukunukuapuaa 3 · 0 0

you can 1st go to data>filter>auto filter. then u can click on the little white tab which appears at the top of the columns and filter your sold column for yes. and finally you can punch in your formula to sum for these rows.

Hope this was helpful.

2007-02-21 03:24:52 · answer #2 · answered by kimster 2 · 0 0

Use this formula assuming your columns are A, B, C, etc

Put this in cell D1:

=if(C1="Yes",A1-B1,0)

drag this down the rest of the rows and it will update the formula correctly for all other rows.

2007-02-21 03:20:26 · answer #3 · answered by Phil F 1 · 2 0

yes, you can used the If function to only add the profit from those which are sold.

2007-02-21 03:21:17 · answer #4 · answered by Jon 5 · 0 0

fedest.com, questions and answers