formulas

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Formulas

Formulas

resolvedResolved · Medium Priority · Version 2007

Emma has attended:
Excel Introduction course

Formulas

i have to make a sheet with customers name and if they are a payer or member. I know the =countif(cells,"P") for a payer and m member. How if possible can i do it with a name infront of the P or M, so it will give me the amount of each. I need the clients name.
Many Thanks Emma

RE: formulas

Hi Emma

Thanks for getting in touch. This should be possible. Can you reply with a few examples of the sort of things your sheet says? How does the name and the "P" or "M" fit together?

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: formulas

OK.... I have a daily sheet with classes (I work in a gym). We have a break down of members and non members, who are classed as payers.

this is an example...

Jo M ( this is a member)
Fred P ( this is a payer)
June M
Anne M
John P
Louise P
Chris P
Jack M


each payer pays £6.00 I know how to do the =sum(cells*6), to give me the full amount, but I need a formula to give me the amount of payers to start with. And the amount of members...

so I have something like this at the end of each column,

payers 10
£60.00
members 5

Many thanks Emma

RE: formulas

Hi Emma

Thanks for this, it's really helpful. Just one last detail to sort this out: when you have "Fred P" is all of that in one cell? Or is "Fred" in one cell and "P" in the next?

Then I should be able to let you know what's formulas you need.

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: formulas

yes its all in one cell.

I did think about having the name in one cell and P in another, but the staff have to type really quickly, ask names and take money, and I know they will make mistakes. They do even now just spelling names !!!

Edited on Thu 31 Oct 2013, 16:33

RE: formulas

Hi Emma

OK, I would use a RIGHT function to pull out the "M" or the "P". It looks like this:

=RIGHT(A1,1)

which pulls out the rightmost character from that cell. You can then use a COUNTIF function as above to figure out which cells have an M or P beside them.

I've enclosed an example to show you how it works.

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Attached files...

GF Members Payers.xlsx

RE: formulas

Thank you.

After seeing the formula, it makes sense. And if you put
=Left( cells), it would take the farthest on the left.

Thank you again


 

Excel tip:

Autofit column width – Excel (all versions)

a. Highlight the column or columns you wish to alter the width of. You do this by clicking on the grey button at the top of the column showing the column letter. Click and drag on these letters to select more than one column.
b. Double click the dividing line between the columns. This dividing line is the break between the columns on the column headers (grey buttons showing the column letter at the top of each column). When you hover your mouse over one of these dividing lines the point will change and show an arrow pulling a line in two directions. When you have this mouse pointer you should double click to get Excel to automatically set the column width to fit the contents of the column (autofit)

View all Excel hints and tips


Server loaded in 0.08 secs.