Formula excel with several conditions

Aretradeser

Board Regular
Joined
Jan 16, 2013
Messages
176
Office Version
  1. 2013
Platform
  1. Windows
On a sheet1 I have some supporting data, in A1, A2 and A3 the titles; and in B1, B2 and B3, the quantities. On sheet2 some operations with formulas.


I want to achieve the following:


In A1 (sheet2), using a formula that includes the title that is in A1 (sheet1), but with the following conditions:


If the value of B1 (sheet1) is greater than zero, let me record the title that is in A1 (sheet1) in cell A1 (sheet2).


If the value of B1 (sheet1) is zero or blank, leave cell A1 (sheet2) blank.


And so, with B2 and B3 (sheet1), in A2 and A3 (sheet2)


This I think I have achieved through the formulas:


Cell A1: SI(Y(Sheet1!B1="");"";Sheet1!A1)
Cell B1: SI(Y(Sheet1!B2="");"";Sheet1!A2)
Cell C1: SI(Y(Sheet1!B3="");"";Sheet1!A3)


On the other hand, I require;


What if, in cell A1 (sheet2), you find the record of cell A1 (sheet1), I enter the value of cell B1 (sheet1), in A2 (sheet2).


But if A1 (sheet2) is blank, cell A2 (sheet2) also remains blank, not with the value zero.


And so with the other two pairs of cells: B1, B2 and C1, C2.


If needed, I can send a test file, for your better understanding.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,275
Messages
6,171,122
Members
452,381
Latest member
Nova88

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