ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Combined IF statement... (https://www.excelbanter.com/excel-worksheet-functions/7727-combined-if-statement.html)

Brian

Combined IF statement...
 
Here is my situation:

I have a list of three prices in column B (rows 1,2,3), I will be placing a
number (quantity) in column A (in row 1,2,OR 3)corresponding to the price i
want to select.

In column C, the three rows are merged to give one price based on A*B.

How can I use an IF_THEN statement to accomplish this? Or is there a better
way?

Thanks in advance.

Bob Phillips

You haven't given any details of what tests are applicable to the IFs.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Brian" wrote in message
...
Here is my situation:

I have a list of three prices in column B (rows 1,2,3), I will be placing

a
number (quantity) in column A (in row 1,2,OR 3)corresponding to the price

i
want to select.

In column C, the three rows are merged to give one price based on A*B.

How can I use an IF_THEN statement to accomplish this? Or is there a

better
way?

Thanks in advance.




JE McGimpsey

one way:

=SUMPRODUCT(A1:A3,B1:B3)

In article ,
"Brian" wrote:

Here is my situation:

I have a list of three prices in column B (rows 1,2,3), I will be placing a
number (quantity) in column A (in row 1,2,OR 3)corresponding to the price i
want to select.

In column C, the three rows are merged to give one price based on A*B.

How can I use an IF_THEN statement to accomplish this? Or is there a better
way?

Thanks in advance.


Brian

I'm sorry for that, I'll try to clarify.

In column A there will only be a number in ONE of the rows.
So I want to:
multiple B1*A1 if there is a number in A1 and give result in C1
OR
multiple B2*A2 if there is a number in A2 and give result in C1
OR
multiple B3*A3 if there is a number in A3 and give result in C1

Hope this helps.


"Bob Phillips" wrote:

You haven't given any details of what tests are applicable to the IFs.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Brian" wrote in message
...
Here is my situation:

I have a list of three prices in column B (rows 1,2,3), I will be placing

a
number (quantity) in column A (in row 1,2,OR 3)corresponding to the price

i
want to select.

In column C, the three rows are merged to give one price based on A*B.

How can I use an IF_THEN statement to accomplish this? Or is there a

better
way?

Thanks in advance.





Brian

Thanks JE, that will work.

"JE McGimpsey" wrote:

one way:

=SUMPRODUCT(A1:A3,B1:B3)

In article ,
"Brian" wrote:

Here is my situation:

I have a list of three prices in column B (rows 1,2,3), I will be placing a
number (quantity) in column A (in row 1,2,OR 3)corresponding to the price i
want to select.

In column C, the three rows are merged to give one price based on A*B.

How can I use an IF_THEN statement to accomplish this? Or is there a better
way?

Thanks in advance.



Bob Phillips

=IF(A1<"",B1*A1,IF(A2<"",B2*A2,B3*A3))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Brian" wrote in message
...
I'm sorry for that, I'll try to clarify.

In column A there will only be a number in ONE of the rows.
So I want to:
multiple B1*A1 if there is a number in A1 and give result in C1
OR
multiple B2*A2 if there is a number in A2 and give result in C1
OR
multiple B3*A3 if there is a number in A3 and give result in C1

Hope this helps.


"Bob Phillips" wrote:

You haven't given any details of what tests are applicable to the IFs.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Brian" wrote in message
...
Here is my situation:

I have a list of three prices in column B (rows 1,2,3), I will be

placing
a
number (quantity) in column A (in row 1,2,OR 3)corresponding to the

price
i
want to select.

In column C, the three rows are merged to give one price based on A*B.

How can I use an IF_THEN statement to accomplish this? Or is there a

better
way?

Thanks in advance.







Frank Kabel

Hi
=SUM(A1:A3)*SUM(B1:B3)
if there really can be only ONE number per column

--
Regards
Frank Kabel
Frankfurt, Germany

"Brian" schrieb im Newsbeitrag
...
I'm sorry for that, I'll try to clarify.

In column A there will only be a number in ONE of the rows.
So I want to:
multiple B1*A1 if there is a number in A1 and give result in C1
OR
multiple B2*A2 if there is a number in A2 and give result in C1
OR
multiple B3*A3 if there is a number in A3 and give result in C1

Hope this helps.


"Bob Phillips" wrote:

You haven't given any details of what tests are applicable to the

IFs.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Brian" wrote in message
...
Here is my situation:

I have a list of three prices in column B (rows 1,2,3), I will be

placing
a
number (quantity) in column A (in row 1,2,OR 3)corresponding to

the price
i
want to select.

In column C, the three rows are merged to give one price based on

A*B.

How can I use an IF_THEN statement to accomplish this? Or is

there a
better
way?

Thanks in advance.







All times are GMT +1. The time now is 07:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com