dual logical IF formula

mkyb14

Board Regular
Joined
Aug 30, 2008
Messages
56
Looking for some help in how to setup a logical IF statement (believe that's the right terminology).

Column C below, I'm trying to determine the following

  • G1 = if network count =0 & Device count is >1000 - Then fill in G1 into cooresponding C cell
  • G2 = if network count >1 & device count =0 - Then fill in G2 into corresponding C Cell

I have one massive sheet with columns A and B filled out, I'd like to automate logic to fill in C by group type defined above

Data:

Column A = Network count, Column B=Device Connections Count, Column C=Group formula (G1,G2)

A | B | C
1 | 14 | blank
0 | 2000 | G1
1 | 0 | G2
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try:
In your example above the 3 row would be blank since 1 is not greater than 1.
Excel Workbook
ABCDEFG
1114 Test1
202000Test1Test2
320Test2
Sheet
 
Upvote 0
Thank you for the help. How do you account for cells that don't have a 0 and are blank? in the B3=0, really is b3=""

Try:
In your example above the 3 row would be blank since 1 is not greater than 1.

ABCDEFG
1114Test1
202000Test1Test2
320Test2

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
C1=IF(AND(A1=0,B1>1000),$G$1,IF(AND(A1>1,B1=0),$G$2,""))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Last edited:
Upvote 0
You mean like this?
Excel Workbook
ABCDEFG
1114 Test1
202000Test1Test2
32
Sheet
 
Upvote 0

Forum statistics

Threads
1,215,493
Messages
6,125,128
Members
449,206
Latest member
burgsrus

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