Many arguments to one cell

Amortcal

New Member
Joined
May 5, 2002
Messages
10
I'm trying to develop a spreadsheet where the user will enter different values in two cells. Example 1000 in Sheet1 cell A1 and 1200 in Sheet1 A2.

I want to be able to automatically have a value entered in cell B1 on sheet 2 depending on whether:
sheet1 cell A1 is greater than sheet1 cell A2 (100 entered in sheet2 cell B1),
Sheet1 cell A1 is less than sheet1 cell A2(zero entered in cell sheet2 B1)
or Sheet1 cell A1 is equaled to sheet1 cell A2 (50 entered on sheet2 cell B1).

I tried using IF statement to do this but had no luck. I think maybe a macro would be the better thing to use. If anybody can help with a macro I would be very appreciative.

Thanks.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
On 2002-05-12 12:27, Amortcal wrote:
I'm trying to develop a spreadsheet where the user will enter different values in two cells. Example 1000 in Sheet1 cell A1 and 1200 in Sheet1 A2.

I want to be able to automatically have a value entered in cell B1 on sheet 2 depending on whether:
sheet1 cell A1 is greater than sheet1 cell A2 (100 entered in sheet2 cell B1),
Sheet1 cell A1 is less than sheet1 cell A2(zero entered in cell sheet2 B1)
or Sheet1 cell A1 is equaled to sheet1 cell A2 (50 entered on sheet2 cell B1).

I tried using IF statement to do this but had no luck. I think maybe a macro would be the better thing to use. If anybody can help with a macro I would be very appreciative.

Thanks.

In B1 in Sheet2 enter:

=(Sheet1!A1>Sheet1!A2)*100+(Sheet1!A1=Sheet1!A2)*50

will probably suffice.
This message was edited by Aladin Akyurek on 2002-05-12 12:37
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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