#1   Report Post  
ALex
 
Posts: n/a
Default functions

How would one include the following conditions in a folmula

IF Column A= A1 and Column B =B1 then C1=1
IF Column A= A2 and Column B =B1 then C1=2

IF Column A= A1 and Column B =B2 then C1=4
IF Column A= A1 and Column B =B3 then C1=5

etc...
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Alex

not sure what you mean by column A = A1
do you mean every value in column A being the same as the value in A1?

Cheers
JulieD


"ALex" wrote:

How would one include the following conditions in a folmula

IF Column A= A1 and Column B =B1 then C1=1
IF Column A= A2 and Column B =B1 then C1=2

IF Column A= A1 and Column B =B2 then C1=4
IF Column A= A1 and Column B =B3 then C1=5

etc...

  #3   Report Post  
ALex
 
Posts: n/a
Default

Hi Julie,

I should have clarified - one worksheet vs. the other...

IF Input! Column A= A1 and Input! Column B =B1 then C1=1
IF Input! Column A= A2 and Input! Column B =B1 then C1=2

IF Input! Column A= A1 and Input! Column B =B2 then C1=4
IF Input! Column A= A1 and Input! Column B =B3 then C1=5


Thanks,
Alex


"JulieD" wrote:

Hi Alex

not sure what you mean by column A = A1
do you mean every value in column A being the same as the value in A1?

Cheers
JulieD


"ALex" wrote:

How would one include the following conditions in a folmula


etc...

  #4   Report Post  
Fred Smith
 
Posts: n/a
Default

How about something like:

=if(and(input!a1=$a$1,input!b1=$b$1),1,if(input!a1 =$a$2,input!b1=$b$1),2,
if(and(input!a1=$1$1,input!b1=$b$2),4,if(and(input !a1=$a$1,input!b1=$b$3),5,"error"))))

--
Regards,
Fred
Please reply to newsgroup, not e-mail


"ALex" wrote in message
...
Hi Julie,

I should have clarified - one worksheet vs. the other...

IF Input! Column A= A1 and Input! Column B =B1 then C1=1
IF Input! Column A= A2 and Input! Column B =B1 then C1=2

IF Input! Column A= A1 and Input! Column B =B2 then C1=4
IF Input! Column A= A1 and Input! Column B =B3 then C1=5


Thanks,
Alex


"JulieD" wrote:

Hi Alex

not sure what you mean by column A = A1
do you mean every value in column A being the same as the value in A1?

Cheers
JulieD


"ALex" wrote:

How would one include the following conditions in a folmula


etc...



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
3 questions about automated c++ com add-in worksheet functions gert Excel Worksheet Functions 0 March 10th 05 09:57 AM
# of Functions per cell SUB-ZERO Excel Worksheet Functions 3 January 23rd 05 10:35 PM
PivotTable canned functions doco Excel Discussion (Misc queries) 0 January 14th 05 03:52 PM
How to load Engineering Functions into the Fx function wizard? jsaval Excel Worksheet Functions 1 November 11th 04 09:47 PM
Where can I see VBA code for financial functions? eios Excel Worksheet Functions 1 November 2nd 04 01:00 PM


All times are GMT +1. The time now is 05:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"