element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Learning Center
  • Learn
  • More
Learning Center
Blog How to build and work with Logic Gates using MS Excel (3)
  • Blog
  • Documents
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Learning Center to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: backcorp
  • Date Created: 30 Nov 2020 9:40 AM Date Created
  • Views 1926 views
  • Likes 0 likes
  • Comments 0 comments
Related
Recommended

How to build and work with Logic Gates using MS Excel (3)

backcorp
backcorp
30 Nov 2020

(Part 3 of 3)

Building the Logic Gates.

 

                By now you should have opened the Logic Gate spreadsheet and know what they look like. Two merged cells at the top. Two bordered cells going down the left side and a bold bordered cell to the right. The puzzle was to make them work like logic gates. That turned out to be easy. A simple “=IF(“ formula did the trick. I made a statement about the two cells on the left and gave the true and false part of the formula a 1 or 0 depending on what was required.

 

Condition

                0 0 1 1

                0 1 0 1

 

AND       0 0 0 1    =IF(O3+O4=2,1,0)

NAND   1 1 1 0    =IF(R3+R4=2,0,1)

OR          0 1 1 1    =IF(U3+U4=0,0,1)

NOR       1 0 0 0    =IF(X3+X4=0,1,0)

XOR       0 1 1 0    =IF(AA3+AA4=1,1,0)

XNOR    1 0 0 1    =IF(AD3+AD4=1,0,1)

 

                That’s it in a nutshell.

 

                Copy and paste a gate where you want it. Click on one of the left cell boxes and either drag the box that appears in the original location or simply type “=” and then click on the box/cell you want to be wired to. Do it again with the other left side box and repeat until you’ve made something.

 

                Here is a tip: If you want to change one gate for another, you only need to copy/paste the bottom right box. This way the hypothetical wires stay connected. Of course you’ll also want to copy/paste the new gate name.

 

I’ll attach the 4 channel switch and my Quadrature reader. You will see a similarity that I also used on the big project. One might say I could have used the same inverter (NOT) twice rather than having two. That is correct but I like the visual flow and less labels.

 

Speaking of labeling I found the left side works well for this. This makes your gates 3x3 so, leave room for that if you’re building something big. Also don’t forget about “Trace Precedents” and “Trace Dependents” in the formulas tab. It is often handy to see the wires when troubleshooting.

Attachments:
LOGIC GATES Quad & 4CH Switch.xlsxLOGIC GATES Quad & 4CH Switch.xlsx
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube