Same value when name changes

lprenrut

Board Regular
Joined
Nov 21, 2004
Messages
122
Hi Guys

I need some help with this formula

=IF(A1="chinese",8,0),IF(A1="English",8,0),IF(A1="Spanish",8,0)

How do I continue the formula if the cell A1 name changes to let say English or Spanish etc..

Thanks in advance

Larry
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Maybe...

=IF(ISNUMBER(MATCH(A1,MyList,0)),8,0)
where MyList is a named range that contains Chinese, English, Spanish etc

M.
 
Upvote 0
Hi Guys again

=IF(ISNUMBER(MATCH(A1,MyList,0)),8,0)

That formula worked well but I want to copy over to cells A2,A3,A4 Etc but add up the total in A6

How can this be achieved

Thanks in advance

Larry
 
Upvote 0
Hi Marcelo

Original formula provided by yourself =IF(ISNUMBER(MATCH(A1,MyList,0)),8,0)

What I want is when cell A1 meets my criteria =mylist this will return a value of 8 in cell A6

When cell A2 meets my criteria =mylist this will add 8 to cell A6 making a total of 16

When cell A3 meets my criteria =mylist this will add 8 to cell A6 making a total of 24 and so on

Hope this makes sense

Larry
 
Upvote 0
Marcelo
you are the man!!!

Thank you very much that is exactly what I wanted

Thank you

Larry
 
Upvote 0

Forum statistics

Threads
1,215,042
Messages
6,122,810
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top