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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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

<tbody>
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]14[/TD]

[TD="align: center"]Test1[/TD]

[TD="align: center"]2[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2000[/TD]
[TD="align: center"]Test1[/TD]

[TD="align: center"]Test2[/TD]

[TD="align: center"]3[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]Test2[/TD]

</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,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

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